diff options
Diffstat (limited to 'new/button_windows.c')
| -rw-r--r-- | new/button_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/new/button_windows.c b/new/button_windows.c index c331e89..c57b778 100644 --- a/new/button_windows.c +++ b/new/button_windows.c @@ -6,11 +6,11 @@ struct button { void *onClickedData; }; -static BOOL onWM_COMMAND(uiControl *c, WPARAM wParam, LPARAM lParam, LRESULT *lResult) +static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult) { struct button *b = (struct button *) (c->data); - if (HIWORD(wParam) != BN_CLICKED) + if (code != BN_CLICKED) return FALSE; (*(b->onClicked))(c, b->onClickedData); *lResult = 0; |
