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?
This commit is contained in:
parent
862f84292f
commit
62424fbd79
|
@ -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.
|
// 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.
|
// 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);
|
BOOL (*onWM_COMMAND)(uiControl *c, WORD code, LRESULT *lResult);
|
||||||
// TODO set idFrom to 0?
|
|
||||||
BOOL (*onWM_NOTIFY)(uiControl *c, NMHDR *nm, LRESULT *lResult);
|
BOOL (*onWM_NOTIFY)(uiControl *c, NMHDR *nm, LRESULT *lResult);
|
||||||
|
|
||||||
// This is called when the widget is ready to be destroyed.
|
// This is called when the widget is ready to be destroyed.
|
||||||
|
|
Loading…
Reference in New Issue