summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 01:33:26 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 01:33:26 -0400
commitdd8de11cc2b4601c6b6252c859d52b840ea801c3 (patch)
tree51f55f4b953b8a4dc91628f63943313103d33a70 /new/ui_windows.h
parentab936d304f593ab14853216ce3e77bba1e71d4f4 (diff)
More work on the Windows control hooking.
Diffstat (limited to 'new/ui_windows.h')
-rw-r--r--new/ui_windows.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h
index eb68475..675f45b 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -21,8 +21,10 @@ struct uiWindowsNewControlParams {
// ui redirects the message back and calls these functions.
// Store the result in the LRESULT pointer and return TRUE to return the given result; return FALSE to pass the notification up to your window procedure.
// Note that these are only issued if they come from the uiControl itself; notifications from children of the uiControl (such as a header control) will be received normally.
- BOOL (*onWM_COMMAND)(uiControl *, WPARAM, LPARAM, LRESULT *);
- BOOL (*onWM_NOTIFY)(uiControl *, WPARAM, LPARAM, LRESULT *);
+ BOOL (*onWM_COMMAND)(uiControl *, WPARAM, LPARAM, void *, LRESULT *);
+ BOOL (*onWM_NOTIFY)(uiControl *, WPARAM, LPARAM, void *, LRESULT *);
+ // This is the void * parameter to both of the above.
+ void *onCommandNotifyData;
};
uiControl *uiWindowsNewControl(uiWindowsNewControlParams *);