mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00: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:
|
case WM_SYSCOLORCHANGE:
|
||||||
COMCTL32_RefreshSysColors();
|
COMCTL32_RefreshSysColors();
|
||||||
|
#ifndef __REACTOS__
|
||||||
return FALSE;
|
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:
|
case PSM_GETCURRENTPAGEHWND:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user