你参数写错了,msdn上的参数解释如下。
The BN_CLICKED notification code is sent when the user clicks a button.
The parent window of the button receives the BN_CLICKED notification code through the WM_COMMAND message.
Syntax
BN_CLICKED
WPARAM wParam
LPARAM lParam;
Parameters
wParam
The low-order word contains the button's control identifier. The high-order word specifies the notification message.
lParam
Handle to the button.