Author: weiden Date: Fri Jan 9 18:58:24 2009 New Revision: 38674
URL: http://svn.reactos.org/svn/reactos?rev=38674&view=rev Log: Register the shell desktop and tray window
Modified: trunk/reactos/dll/win32/shell32/desktop.c
Modified: trunk/reactos/dll/win32/shell32/desktop.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/desktop.c... ============================================================================== --- trunk/reactos/dll/win32/shell32/desktop.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/desktop.c [iso-8859-1] Fri Jan 9 18:58:24 2009 @@ -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 @@ IShellBrowser *ShellBrowser; FOLDERSETTINGS fs; RECT rcClient; + HWND hwndTray; HRESULT hRet;
if (!GetClientRect(This->hWnd, @@ -275,6 +278,12 @@ if (!SUCCEEDED(hRet)) return FALSE;
+ if (SUCCEEDED (IShellDesktop_GetTrayWindow(This->ShellDesk, + &hwndTray))) + { + SetShellWindowEx (hwndTray, + This->hWnd); + } return TRUE; }