Author: weiden
Date: Sat Jan 10 10:16:25 2009
New Revision: 38681
URL:
http://svn.reactos.org/svn/reactos?rev=38681&view=rev
Log:
SetShellWindow wants the Progman window and the list view window... Thx Timo
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.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/desktop.c [iso-8859-1] Sat Jan 10 10:16:25 2009
@@ -255,13 +255,21 @@
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 @@
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;
}