We should forward WM_COMMAND notification to the active page for any
additional non-standard controls in the property sheet frame.
This commit is contained in:
parent
da7a575328
commit
710bd6fb6a
|
@ -2773,6 +2773,9 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID)
|
|||
case IDHELP:
|
||||
PROPSHEET_Help(hwnd);
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
@ -2901,7 +2904,18 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return TRUE;
|
||||
|
||||
case WM_COMMAND:
|
||||
return PROPSHEET_DoCommand(hwnd, LOWORD(wParam));
|
||||
if (!PROPSHEET_DoCommand(hwnd, LOWORD(wParam)))
|
||||
{
|
||||
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwnd, PropSheetInfoStr);
|
||||
|
||||
/* No default handler, forward notification to active page */
|
||||
if (psInfo->activeValid && psInfo->active_page != -1)
|
||||
{
|
||||
HWND hwndPage = psInfo->proppage[psInfo->active_page].hwndPage;
|
||||
SendMessageW(hwndPage, WM_COMMAND, wParam, lParam);
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
case WM_NOTIFY:
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue