[SHELL32]

* Return 1 in WM_ERASEBKGND when desktop is painted
* Fix background for desktop icons and their labels
* Moreover fixes explorer_new background

svn path=/trunk/; revision=51322
This commit is contained in:
Rafal Harabien 2011-04-12 18:45:06 +00:00
parent 7db2a95a80
commit e58c66359a
2 changed files with 7 additions and 5 deletions

View file

@ -586,8 +586,7 @@ ProgmanWindowProc(IN HWND hwnd,
switch (uMsg)
{
case WM_ERASEBKGND:
PaintDesktop((HDC)wParam);
break;
return (LRESULT)PaintDesktop((HDC)wParam);
case WM_GETISHELLBROWSER:
Ret = (LRESULT)IShellBrowser_from_impl(This);

View file

@ -324,8 +324,11 @@ static BOOL ShellView_CreateList (IShellViewImpl * This)
* HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow
* and activate drop shadows if necessary
*/
if (0)
if (1)
{
SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
SendMessageW(This->hWndList, LVM_SETBKCOLOR, 0, CLR_NONE);
}
else
{
SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, GetSysColor(COLOR_DESKTOP));
@ -1833,7 +1836,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
case WM_SHOWWINDOW: UpdateWindow(pThis->hWndList);
break;
case WM_GETDLGCODE: return SendMessageA(pThis->hWndList,uMessage,0,0);
case WM_GETDLGCODE: return SendMessageW(pThis->hWndList,uMessage,0,0);
case WM_DESTROY:
RevokeDragDrop(pThis->hWnd);
@ -1843,7 +1846,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
case WM_ERASEBKGND:
if ((pThis->FolderSettings.fFlags & FWF_DESKTOP) ||
(pThis->FolderSettings.fFlags & FWF_TRANSPARENT))
return 1;
return SendMessageW(pThis->hWndParent, WM_ERASEBKGND, wParam, lParam); /* redirect to parent */
break;
case CWM_GETISHELLBROWSER:
return (LRESULT)pThis->pShellBrowser;