Commit 710bd6fb authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

We should forward WM_COMMAND notification to the active page for any

additional non-standard controls in the property sheet frame.
parent da7a5753
......@@ -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:
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment