BM_GETSTATE

This message determines the state of a button control when the user presses a mouse button or the SPACEBAR.

Parameter Description  

wParam Is not used.  
lParam Is not used.  

Return Value

The BM_GETSTATE message returns a nonzero value if one of the following occurs:

A push button is highlighted.

The user presses a mouse button or the SPACEBAR when a button has the input focus.

The user presses a mouse button when the cursor is over a button.

Otherwise, BM_GETSTATE returns zero.