From 62424fbd795d837a977ad35c8370a84161f74c25 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 3 May 2015 20:02:44 -0400 Subject: [PATCH] Decided not to hide NMHDR.idFrom in Windows WM_NOTIFY handlers; it's not worth it (we can get the ID anyway with GWLP_ID) and breaks the contract on WM_NOTIFY; who knows what user code will do? --- ui_windows.h | 1 - 1 file changed, 1 deletion(-) diff --git a/ui_windows.h b/ui_windows.h index 08a50ffc..0996a5db 100644 --- a/ui_windows.h +++ b/ui_windows.h @@ -26,7 +26,6 @@ struct uiWindowsMakeControlParams { // 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. BOOL (*onWM_COMMAND)(uiControl *c, WORD code, LRESULT *lResult); - // TODO set idFrom to 0? BOOL (*onWM_NOTIFY)(uiControl *c, NMHDR *nm, LRESULT *lResult); // This is called when the widget is ready to be destroyed.