mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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:
parent
7db2a95a80
commit
e58c66359a
2 changed files with 7 additions and 5 deletions
|
@ -586,8 +586,7 @@ ProgmanWindowProc(IN HWND hwnd,
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case WM_ERASEBKGND:
|
case WM_ERASEBKGND:
|
||||||
PaintDesktop((HDC)wParam);
|
return (LRESULT)PaintDesktop((HDC)wParam);
|
||||||
break;
|
|
||||||
|
|
||||||
case WM_GETISHELLBROWSER:
|
case WM_GETISHELLBROWSER:
|
||||||
Ret = (LRESULT)IShellBrowser_from_impl(This);
|
Ret = (LRESULT)IShellBrowser_from_impl(This);
|
||||||
|
|
|
@ -324,8 +324,11 @@ static BOOL ShellView_CreateList (IShellViewImpl * This)
|
||||||
* HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow
|
* HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow
|
||||||
* and activate drop shadows if necessary
|
* and activate drop shadows if necessary
|
||||||
*/
|
*/
|
||||||
if (0)
|
if (1)
|
||||||
|
{
|
||||||
SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
|
SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
|
||||||
|
SendMessageW(This->hWndList, LVM_SETBKCOLOR, 0, CLR_NONE);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, GetSysColor(COLOR_DESKTOP));
|
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);
|
case WM_SHOWWINDOW: UpdateWindow(pThis->hWndList);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_GETDLGCODE: return SendMessageA(pThis->hWndList,uMessage,0,0);
|
case WM_GETDLGCODE: return SendMessageW(pThis->hWndList,uMessage,0,0);
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
RevokeDragDrop(pThis->hWnd);
|
RevokeDragDrop(pThis->hWnd);
|
||||||
|
@ -1843,7 +1846,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
|
||||||
case WM_ERASEBKGND:
|
case WM_ERASEBKGND:
|
||||||
if ((pThis->FolderSettings.fFlags & FWF_DESKTOP) ||
|
if ((pThis->FolderSettings.fFlags & FWF_DESKTOP) ||
|
||||||
(pThis->FolderSettings.fFlags & FWF_TRANSPARENT))
|
(pThis->FolderSettings.fFlags & FWF_TRANSPARENT))
|
||||||
return 1;
|
return SendMessageW(pThis->hWndParent, WM_ERASEBKGND, wParam, lParam); /* redirect to parent */
|
||||||
break;
|
break;
|
||||||
case CWM_GETISHELLBROWSER:
|
case CWM_GETISHELLBROWSER:
|
||||||
return (LRESULT)pThis->pShellBrowser;
|
return (LRESULT)pThis->pShellBrowser;
|
||||||
|
|
Loading…
Reference in a new issue