Skip to content

Commit 0bbfb26

Browse files
author
Rafal Harabien
committed
[APPLICATIONS]
* Properly support WM_SYSCOLORCHANGE in msconfig, mspaint, rapps, regedit and regedit svn path=/trunk/; revision=51523
1 parent 8311cfe commit 0bbfb26

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

reactos/base/applications/msconfig/msconfig.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ MsConfigWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
212212
}
213213
break;
214214

215+
case WM_SYSCOLORCHANGE:
216+
/* Forward WM_SYSCOLORCHANGE to common controls */
217+
SendMessage(hServicesListCtrl, WM_SYSCOLORCHANGE, 0, 0);
218+
SendMessage(hStartupListCtrl, WM_SYSCOLORCHANGE, 0, 0);
219+
SendMessage(hToolsListCtrl, WM_SYSCOLORCHANGE, 0, 0);
220+
break;
221+
215222
case WM_DESTROY:
216223
if (hToolsPage)
217224
DestroyWindow(hToolsPage);

reactos/base/applications/mspaint/winproc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,14 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
692692

693693
// menu and button events
694694

695+
case WM_SYSCOLORCHANGE:
696+
{
697+
/* Redirect message to common controls */
698+
HWND hToolbar = FindWindowEx(hToolBoxContainer, NULL, TOOLBARCLASSNAME, NULL);
699+
SendMessage(hToolbar, WM_SYSCOLORCHANGE, 0, 0);
700+
break;
701+
}
702+
695703
case WM_COMMAND:
696704
switch (LOWORD(wParam))
697705
{

reactos/base/applications/rapps/winmain.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,15 @@ MainWindowProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
717717
return TRUE;
718718
}
719719

720+
case WM_SYSCOLORCHANGE:
721+
{
722+
/* Forward WM_SYSCOLORCHANGE to common controls */
723+
SendMessage(hListView, WM_SYSCOLORCHANGE, 0, 0);
724+
SendMessage(hTreeView, WM_SYSCOLORCHANGE, 0, 0);
725+
SendMessage(hToolBar, WM_SYSCOLORCHANGE, 0, 0);
726+
}
727+
break;
728+
720729
case WM_DESTROY:
721730
{
722731
ShowWindow(hwnd, SW_HIDE);

reactos/base/applications/regedit/framewnd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,11 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
11771177
case WM_MENUSELECT:
11781178
OnMenuSelect(hWnd, LOWORD(wParam), HIWORD(wParam), (HMENU)lParam);
11791179
break;
1180+
case WM_SYSCOLORCHANGE:
1181+
/* Forward WM_SYSCOLORCHANGE to common controls */
1182+
SendMessage(g_pChildWnd->hListWnd, WM_SYSCOLORCHANGE, 0, 0);
1183+
SendMessage(g_pChildWnd->hTreeWnd, WM_SYSCOLORCHANGE, 0, 0);
1184+
break;
11801185
case WM_DESTROY:
11811186
WinHelp(hWnd, _T("regedit"), HELP_QUIT, 0);
11821187
PostQuitMessage(0);

reactos/base/applications/sndvol32/sndvol32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ DlgPreferencesProc(HWND hwndDlg,
579579
{
580580
HWND hwndControls;
581581

582-
/* Forward WM_SYSCOLORCHANGE to common controls */
582+
/* Forward WM_SYSCOLORCHANGE */
583583
hwndControls = GetDlgItem(hwndDlg, IDC_CONTROLS);
584584
SendMessage(hwndControls, WM_SYSCOLORCHANGE, 0, 0);
585585
break;

0 commit comments

Comments
 (0)