mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue