summaryrefslogtreecommitdiff
path: root/new/ui_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 00:51:50 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 00:51:50 -0400
commitf5c8bdd4b3fb089370f3cc41a742b3385289efe1 (patch)
tree1057046951bf736ec2182d185b36039af80f9abb /new/ui_windows.h
parent54e947eed3d75d0fbae533e7e4cce8fe84aaf77c (diff)
Finished Windows cleanup management. Everything (almost, only parentWindow is still around, but that shouldn't be a uiWindow to begin with) now cleaned!
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 cbbe859..c86e6a9 100644
--- a/new/ui_windows.h
+++ b/new/ui_windows.h
@@ -23,8 +23,10 @@ struct uiWindowsNewControlParams {
// 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 *c, WPARAM wParam, LPARAM lParam, void *data, LRESULT *lResult);
BOOL (*onWM_NOTIFY)(uiControl *c, WPARAM wParam, LPARAM lParam, void *data, LRESULT *lResult);
- // This is the data parameter to both of the above.
- void *onCommandNotifyData;
+ // This is called in WM_DESTROY.
+ void (*onWM_DESTROY)(uiControl *c, void *data);
+ // This is the data parameter to all three of the above.
+ void *onCommandNotifyDestroyData;
// This function is called when ui needs to know how to rearrange controls in a window.
// baseX and baseY are the base units used to convert between dialog units and pixels.