mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 07:41:48 +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
5 changed files with 30 additions and 1 deletions
|
@ -212,6 +212,13 @@ MsConfigWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case WM_DESTROY:
|
||||||
if (hToolsPage)
|
if (hToolsPage)
|
||||||
DestroyWindow(hToolsPage);
|
DestroyWindow(hToolsPage);
|
||||||
|
|
|
@ -692,6 +692,14 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
// menu and button events
|
// 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:
|
case WM_COMMAND:
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
|
|
|
@ -717,6 +717,15 @@ MainWindowProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
return TRUE;
|
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:
|
case WM_DESTROY:
|
||||||
{
|
{
|
||||||
ShowWindow(hwnd, SW_HIDE);
|
ShowWindow(hwnd, SW_HIDE);
|
||||||
|
|
|
@ -1177,6 +1177,11 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
case WM_MENUSELECT:
|
case WM_MENUSELECT:
|
||||||
OnMenuSelect(hWnd, LOWORD(wParam), HIWORD(wParam), (HMENU)lParam);
|
OnMenuSelect(hWnd, LOWORD(wParam), HIWORD(wParam), (HMENU)lParam);
|
||||||
break;
|
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:
|
case WM_DESTROY:
|
||||||
WinHelp(hWnd, _T("regedit"), HELP_QUIT, 0);
|
WinHelp(hWnd, _T("regedit"), HELP_QUIT, 0);
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
|
|
|
@ -579,7 +579,7 @@ DlgPreferencesProc(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
HWND hwndControls;
|
HWND hwndControls;
|
||||||
|
|
||||||
/* Forward WM_SYSCOLORCHANGE to common controls */
|
/* Forward WM_SYSCOLORCHANGE */
|
||||||
hwndControls = GetDlgItem(hwndDlg, IDC_CONTROLS);
|
hwndControls = GetDlgItem(hwndDlg, IDC_CONTROLS);
|
||||||
SendMessage(hwndControls, WM_SYSCOLORCHANGE, 0, 0);
|
SendMessage(hwndControls, WM_SYSCOLORCHANGE, 0, 0);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue