Skip to content

Commit d09c3d0

Browse files
committed
[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
1 parent dd896f6 commit d09c3d0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

dll/win32/comctl32/propsheet.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,22 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
37503750

37513751
case WM_SYSCOLORCHANGE:
37523752
COMCTL32_RefreshSysColors();
3753+
#ifndef __REACTOS__
37533754
return FALSE;
3755+
#else
3756+
case WM_DISPLAYCHANGE:
3757+
case WM_WININICHANGE:
3758+
{
3759+
PropSheetInfo* psInfo = GetPropW(hwnd, PropSheetInfoStr);
3760+
INT i;
3761+
for (i = 0; i < psInfo->nPages; i++)
3762+
{
3763+
HWND hwndPage = psInfo->proppage[i].hwndPage;
3764+
SendMessageW(hwndPage, uMsg, wParam, lParam);
3765+
}
3766+
return FALSE;
3767+
}
3768+
#endif
37543769

37553770
case PSM_GETCURRENTPAGEHWND:
37563771
{

0 commit comments

Comments
 (0)