mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
SetShellWindow wants the Progman window and the list view window... Thx Timo
svn path=/trunk/; revision=38681
This commit is contained in:
parent
43e45a3d95
commit
8dd743f625
1 changed files with 12 additions and 7 deletions
|
@ -255,13 +255,21 @@ Fail:
|
|||
return This;
|
||||
}
|
||||
|
||||
static HWND
|
||||
SHDESK_FindDesktopListView (SHDESK *This)
|
||||
{
|
||||
return FindWindowEx (This->hWndShellView,
|
||||
NULL,
|
||||
WC_LISTVIEW,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static BOOL
|
||||
SHDESK_CreateDeskWnd(SHDESK *This)
|
||||
{
|
||||
IShellBrowser *ShellBrowser;
|
||||
FOLDERSETTINGS fs;
|
||||
RECT rcClient;
|
||||
HWND hwndTray;
|
||||
HRESULT hRet;
|
||||
|
||||
if (!GetClientRect(This->hWnd,
|
||||
|
@ -278,12 +286,9 @@ SHDESK_CreateDeskWnd(SHDESK *This)
|
|||
if (!SUCCEEDED(hRet))
|
||||
return FALSE;
|
||||
|
||||
if (SUCCEEDED (IShellDesktop_GetTrayWindow(This->ShellDesk,
|
||||
&hwndTray)))
|
||||
{
|
||||
SetShellWindowEx (This->hWnd,
|
||||
hwndTray); // FIXME: Shouldn't this be the desktop listview?
|
||||
}
|
||||
SetShellWindowEx (This->hWnd,
|
||||
SHDESK_FindDesktopListView (This));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue