Register the shell desktop and tray window

svn path=/trunk/; revision=38674
This commit is contained in:
Thomas Bluemel
2009-01-10 00:58:24 +00:00
parent 5abd3acc00
commit 13c77c4fcf
+9
View File
@@ -22,6 +22,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(desktop);
BOOL WINAPI SetShellWindowEx(HWND, HWND);
#define SHDESK_TAG 0x4b534544
static const WCHAR szProgmanClassName[] = {'P','r','o','g','m','a','n'};
@@ -259,6 +261,7 @@ SHDESK_CreateDeskWnd(SHDESK *This)
IShellBrowser *ShellBrowser;
FOLDERSETTINGS fs;
RECT rcClient;
HWND hwndTray;
HRESULT hRet;
if (!GetClientRect(This->hWnd,
@@ -275,6 +278,12 @@ SHDESK_CreateDeskWnd(SHDESK *This)
if (!SUCCEEDED(hRet))
return FALSE;
if (SUCCEEDED (IShellDesktop_GetTrayWindow(This->ShellDesk,
&hwndTray)))
{
SetShellWindowEx (hwndTray,
This->hWnd);
}
return TRUE;
}