propsheet: WM_COMMAND

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Tue Jan 27 00:11:58 CST 2004


Ulrich Czekalla <ulrich at codeweavers.com>
We should forward WM_COMMAND notification to the active page for
any additional non-standard controls in the property sheet frame.

-------------- next part --------------
Index: propsheet.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.93
diff -u -w -r1.93 propsheet.c
--- propsheet.c	27 Jan 2004 00:01:44 -0000	1.93
+++ propsheet.c	27 Jan 2004 06:04:32 -0000
@@ -2773,6 +2773,9 @@
     case IDHELP:
 	PROPSHEET_Help(hwnd);
 	break;
+
+    default:
+        return FALSE;
     }
 
     return TRUE;
@@ -2901,7 +2904,18 @@
       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:
     {


More information about the wine-patches mailing list