summaryrefslogtreecommitdiff
path: root/new/checkbox_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 19:07:41 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 19:07:41 -0400
commite78b625172199f77989015cc7ff817530eecaafd (patch)
tree9b1d739066ca75bbe8f57647079aebf6fd2e4a1f /new/checkbox_windows.c
parent7400cda3dad212b58ebef5cabe1d66ebc4b9d69b (diff)
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 :/
Diffstat (limited to 'new/checkbox_windows.c')
-rw-r--r--new/checkbox_windows.c2
1 files changed, 1 insertions, 1 deletions
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;
}