SetShellWindow wants the Progman window and the list view window... Thx Timo

svn path=/trunk/; revision=38681
This commit is contained in:
Thomas Bluemel 2009-01-10 16:16:25 +00:00
parent 43e45a3d95
commit 8dd743f625

View file

@ -255,13 +255,21 @@ Fail:
return This; return This;
} }
static HWND
SHDESK_FindDesktopListView (SHDESK *This)
{
return FindWindowEx (This->hWndShellView,
NULL,
WC_LISTVIEW,
NULL);
}
static BOOL static BOOL
SHDESK_CreateDeskWnd(SHDESK *This) SHDESK_CreateDeskWnd(SHDESK *This)
{ {
IShellBrowser *ShellBrowser; IShellBrowser *ShellBrowser;
FOLDERSETTINGS fs; FOLDERSETTINGS fs;
RECT rcClient; RECT rcClient;
HWND hwndTray;
HRESULT hRet; HRESULT hRet;
if (!GetClientRect(This->hWnd, if (!GetClientRect(This->hWnd,
@ -278,12 +286,9 @@ SHDESK_CreateDeskWnd(SHDESK *This)
if (!SUCCEEDED(hRet)) if (!SUCCEEDED(hRet))
return FALSE; return FALSE;
if (SUCCEEDED (IShellDesktop_GetTrayWindow(This->ShellDesk,
&hwndTray)))
{
SetShellWindowEx (This->hWnd, SetShellWindowEx (This->hWnd,
hwndTray); // FIXME: Shouldn't this be the desktop listview? SHDESK_FindDesktopListView (This));
}
return TRUE; return TRUE;
} }