From 8dd743f625161d5e67801fa8d1881dd17ceafa86 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 10 Jan 2009 16:16:25 +0000 Subject: [PATCH] SetShellWindow wants the Progman window and the list view window... Thx Timo svn path=/trunk/; revision=38681 --- reactos/dll/win32/shell32/desktop.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/reactos/dll/win32/shell32/desktop.c b/reactos/dll/win32/shell32/desktop.c index 3e69ba4c0e6..d7649a3c9a4 100644 --- a/reactos/dll/win32/shell32/desktop.c +++ b/reactos/dll/win32/shell32/desktop.c @@ -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; }