mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[APPLICATIONS]
* Properly support WM_SYSCOLORCHANGE in msconfig, mspaint, rapps, regedit and regedit svn path=/trunk/; revision=51523
This commit is contained in:
parent
8311cfe217
commit
0bbfb26d0f
|
@ -212,6 +212,13 @@ MsConfigWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
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:
|
||||
if (hToolsPage)
|
||||
DestroyWindow(hToolsPage);
|
||||
|
|
|
@ -692,6 +692,14 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
// 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))
|
||||
{
|
||||
|
|
|
@ -717,6 +717,15 @@ MainWindowProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|||
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);
|
||||
|
|
|
@ -1177,6 +1177,11 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
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);
|
||||
|
|
|
@ -579,7 +579,7 @@ DlgPreferencesProc(HWND hwndDlg,
|
|||
{
|
||||
HWND hwndControls;
|
||||
|
||||
/* Forward WM_SYSCOLORCHANGE to common controls */
|
||||
/* Forward WM_SYSCOLORCHANGE */
|
||||
hwndControls = GetDlgItem(hwndDlg, IDC_CONTROLS);
|
||||
SendMessage(hwndControls, WM_SYSCOLORCHANGE, 0, 0);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue