summaryrefslogtreecommitdiff
path: root/new/checkbox_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/checkbox_windows.c')
-rw-r--r--new/checkbox_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/new/checkbox_windows.c b/new/checkbox_windows.c
index 55699a6..abe128d 100644
--- a/new/checkbox_windows.c
+++ b/new/checkbox_windows.c
@@ -6,13 +6,13 @@ struct checkbox {
void *onToggledData;
};
-static BOOL onWM_COMMAND(uiControl *c, WPARAM wParam, LPARAM lParam, LRESULT *lResult)
+static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult)
{
struct checkbox *cc = (struct checkbox *) (c->data);
HWND hwnd;
WPARAM check;
- if (HIWORD(wParam) != BN_CLICKED)
+ if (code != BN_CLICKED)
return FALSE;
// we didn't use BS_AUTOCHECKBOX (see controls_windows.go) so we have to manage the check state ourselves