[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:
Hervé Poussineau
2025-06-02 18:10:03 +02:00
parent dd896f6f44
commit d09c3d0af8

View File

@@ -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:
{