BM CLICK
Appearance
An application sends this message to cause the effect of the operator clicking a push button.
Syntax
param1 USHORT usUp /* Up and down indicator. */ param2 ULONG ulReserved /* Reserved value, should be 0. */
Parameters
- usUp (USHORT)
- Up and down indicator.
- TRUE
- Perform the default upclick action
- FALSE
- Perform the default downclick action.
- ulReserved (ULONG)
- Reserved value, should be 0.
Returns
- ulReserved (ULONG)
- Reserved value, should be 0.
Remarks
The button control responds to this message by taking the action that occurs if the button is clicked by the operator. This causes the following messages to be generated:
- A WM_HELP (in Button Controls) message, if the button has a style of BS_HELP.
- A WM_SYSCOMMAND message, if the button has a style of BS_PUSHBUTTON and a style of BS_SYSCOMMAND and not a style of BS_HELP.
- A WM_COMMAND (in Button Controls) message, if the button has a style of BS_PUSHBUTTON but not a style of BS_SYSCOMMAND and not a style of BS_HELP.
- A WM_CONTROL (in Button Controls) message, whose usnotifycode is set to BN_CLICKED, if the button has a style of BS_USERBUTTON, BS_PUSHBUTTON, BS_CHECKBOX, or BS_3STATE, and not a style of BS_SYSCOMMAND or BS_HELP.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set ulReserved to the default value of 0.