Author: martinf
Date: Thu Aug 10 00:10:41 2006
New Revision: 23538
URL:
http://svn.reactos.org/svn/reactos?rev=23538&view=rev
Log:
refresh shell background in response to system color changes
Modified:
trunk/reactos/base/shell/explorer/desktop/desktop.cpp
Modified: trunk/reactos/base/shell/explorer/desktop/desktop.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/deskto…
==============================================================================
--- trunk/reactos/base/shell/explorer/desktop/desktop.cpp (original)
+++ trunk/reactos/base/shell/explorer/desktop/desktop.cpp Thu Aug 10 00:10:41 2006
@@ -457,6 +457,14 @@
}
goto def;
+ case WM_SYSCOLORCHANGE:
+ // redraw background window
+ InvalidateRect(g_Globals._hwndShellView, NULL, TRUE);
+
+ // forward message to shell view window to redraw icon backgrounds
+ SendMessage(g_Globals._hwndShellView, WM_SYSCOLORCHANGE, wparam, lparam);
+ break;
+
default: def:
return super::WndProc(nmsg, wparam, lparam);
}
@@ -480,7 +488,7 @@
: super(hwnd),
_pShellView(pShellView)
{
- _hwndListView = ::GetNextWindow(hwnd, GW_CHILD);
+ _hwndListView = GetNextWindow(hwnd, GW_CHILD);
SetWindowStyle(_hwndListView,
GetWindowStyle(_hwndListView)&~LVS_ALIGNMASK);//|LVS_ALIGNTOP|LVS_AUTOARRANGE);