summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 18:54:14 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 18:54:14 -0400
commit7400cda3dad212b58ebef5cabe1d66ebc4b9d69b (patch)
tree42d63a3b65726f805990d4cd35b009a059b8cd92 /new/ui_windows.h
parent18a58e56fa2b0e7651b1ceb738fd14ffa5719f33 (diff)
Changed onWM_COMMAND() to give our controls only the notification code. We don't want to give the control the ID part of wParam because that's (or that'll be) dynamically assigned based on control parenting and prior controls; we don't want to give the control the LPARAM since that contains the window handle and uiControl already has that.
Diffstat (limited to 'new/ui_windows.h')
-rw-r--r--new/ui_windows.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/ui_windows.h b/new/ui_windows.h
index 4ade067..b89af3a 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -23,7 +23,7 @@ struct uiWindowsNewControlParams {
// Store the result in *lResult and return any non-FALSE value (such as 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.
// TODO don't give WPARAM/LPARAM raw
- BOOL (*onWM_COMMAND)(uiControl *c, WPARAM wParam, LPARAM lParam, LRESULT *lResult);
+ BOOL (*onWM_COMMAND)(uiControl *c, WORD code, LRESULT *lResult);
BOOL (*onWM_NOTIFY)(uiControl *c, WPARAM wParam, LPARAM lParam, LRESULT *lResult);
// This is called in WM_DESTROY.
void (*onWM_DESTROY)(uiControl *c);