mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
refresh shell background in response to system color changes
svn path=/trunk/; revision=23538
This commit is contained in:
parent
ccf643d45b
commit
f465feb351
|
@ -457,6 +457,14 @@ LRESULT DesktopWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
}
|
||||
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 @@ DesktopShellView::DesktopShellView(HWND hwnd, IShellView* pShellView)
|
|||
: super(hwnd),
|
||||
_pShellView(pShellView)
|
||||
{
|
||||
_hwndListView = ::GetNextWindow(hwnd, GW_CHILD);
|
||||
_hwndListView = GetNextWindow(hwnd, GW_CHILD);
|
||||
|
||||
SetWindowStyle(_hwndListView, GetWindowStyle(_hwndListView)&~LVS_ALIGNMASK);//|LVS_ALIGNTOP|LVS_AUTOARRANGE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue