mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user