Author: rharabien
Date: Sun May 1 12:53:10 2011
New Revision: 51523
URL:
http://svn.reactos.org/svn/reactos?rev=51523&view=rev
Log:
[APPLICATIONS]
* Properly support WM_SYSCOLORCHANGE in msconfig, mspaint, rapps, regedit and regedit
Modified:
trunk/reactos/base/applications/msconfig/msconfig.c
trunk/reactos/base/applications/mspaint/winproc.c
trunk/reactos/base/applications/rapps/winmain.c
trunk/reactos/base/applications/regedit/framewnd.c
trunk/reactos/base/applications/sndvol32/sndvol32.c
Modified: trunk/reactos/base/applications/msconfig/msconfig.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/msconfig.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/msconfig.c [iso-8859-1] Sun May 1 12:53:10
2011
@@ -210,6 +210,13 @@
{
MsConfig_OnTabWndSelChange();
}
+ break;
+
+ case WM_SYSCOLORCHANGE:
+ /* Forward WM_SYSCOLORCHANGE to common controls */
+ SendMessage(hServicesListCtrl, WM_SYSCOLORCHANGE, 0, 0);
+ SendMessage(hStartupListCtrl, WM_SYSCOLORCHANGE, 0, 0);
+ SendMessage(hToolsListCtrl, WM_SYSCOLORCHANGE, 0, 0);
break;
case WM_DESTROY:
Modified: trunk/reactos/base/applications/mspaint/winproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] Sun May 1 12:53:10
2011
@@ -691,6 +691,14 @@
break;
// menu and button events
+
+ case WM_SYSCOLORCHANGE:
+ {
+ /* Redirect message to common controls */
+ HWND hToolbar = FindWindowEx(hToolBoxContainer, NULL, TOOLBARCLASSNAME,
NULL);
+ SendMessage(hToolbar, WM_SYSCOLORCHANGE, 0, 0);
+ break;
+ }
case WM_COMMAND:
switch (LOWORD(wParam))
Modified: trunk/reactos/base/applications/rapps/winmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/wi…
==============================================================================
--- trunk/reactos/base/applications/rapps/winmain.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/winmain.c [iso-8859-1] Sun May 1 12:53:10 2011
@@ -717,6 +717,15 @@
return TRUE;
}
+ case WM_SYSCOLORCHANGE:
+ {
+ /* Forward WM_SYSCOLORCHANGE to common controls */
+ SendMessage(hListView, WM_SYSCOLORCHANGE, 0, 0);
+ SendMessage(hTreeView, WM_SYSCOLORCHANGE, 0, 0);
+ SendMessage(hToolBar, WM_SYSCOLORCHANGE, 0, 0);
+ }
+ break;
+
case WM_DESTROY:
{
ShowWindow(hwnd, SW_HIDE);
Modified: trunk/reactos/base/applications/regedit/framewnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] Sun May 1 12:53:10
2011
@@ -1177,6 +1177,11 @@
case WM_MENUSELECT:
OnMenuSelect(hWnd, LOWORD(wParam), HIWORD(wParam), (HMENU)lParam);
break;
+ case WM_SYSCOLORCHANGE:
+ /* Forward WM_SYSCOLORCHANGE to common controls */
+ SendMessage(g_pChildWnd->hListWnd, WM_SYSCOLORCHANGE, 0, 0);
+ SendMessage(g_pChildWnd->hTreeWnd, WM_SYSCOLORCHANGE, 0, 0);
+ break;
case WM_DESTROY:
WinHelp(hWnd, _T("regedit"), HELP_QUIT, 0);
PostQuitMessage(0);
Modified: trunk/reactos/base/applications/sndvol32/sndvol32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32…
==============================================================================
--- trunk/reactos/base/applications/sndvol32/sndvol32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndvol32/sndvol32.c [iso-8859-1] Sun May 1 12:53:10
2011
@@ -579,7 +579,7 @@
{
HWND hwndControls;
- /* Forward WM_SYSCOLORCHANGE to common controls */
+ /* Forward WM_SYSCOLORCHANGE */
hwndControls = GetDlgItem(hwndDlg, IDC_CONTROLS);
SendMessage(hwndControls, WM_SYSCOLORCHANGE, 0, 0);
break;