From e78b625172199f77989015cc7ff817530eecaafd Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 9 Apr 2015 19:07:41 -0400 Subject: Changed onWM_NOTIFY() to only pass the NMHDR * in. The LPARAM is more useful as a NMHDR *, and the WPARAM contains duplicate data (http://blogs.msdn.com/b/oldnewthing/archive/2013/12/04/10473637.aspx). Ideally we wouldn't even have the NMHDR.idFrom (see previous commit message), but oh well :/ --- new/checkbox_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/checkbox_windows.c') diff --git a/new/checkbox_windows.c b/new/checkbox_windows.c index abe128d..4f903ef 100644 --- a/new/checkbox_windows.c +++ b/new/checkbox_windows.c @@ -27,7 +27,7 @@ static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult) return TRUE; } -static BOOL onWM_NOTIFY(uiControl *c, WPARAM wParam, LPARAM lParam, LRESULT *lResult) +static BOOL onWM_NOTIFY(uiControl *c, NMHDR *nm, LRESULT *lResult) { return FALSE; } -- cgit v1.2.3