mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[COMCTL32] Pass WM_SYSCOLORCHANGE/WM_DISPLAYCHANGE/WM_WININICHANGE to property pages
Property pages may want to react on such events, like 'Font' or 'Layout' pages in console.dll CORE-13212
This commit is contained in:
@@ -3750,7 +3750,22 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
case WM_SYSCOLORCHANGE:
|
||||
COMCTL32_RefreshSysColors();
|
||||
#ifndef __REACTOS__
|
||||
return FALSE;
|
||||
#else
|
||||
case WM_DISPLAYCHANGE:
|
||||
case WM_WININICHANGE:
|
||||
{
|
||||
PropSheetInfo* psInfo = GetPropW(hwnd, PropSheetInfoStr);
|
||||
INT i;
|
||||
for (i = 0; i < psInfo->nPages; i++)
|
||||
{
|
||||
HWND hwndPage = psInfo->proppage[i].hwndPage;
|
||||
SendMessageW(hwndPage, uMsg, wParam, lParam);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
case PSM_GETCURRENTPAGEHWND:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user