Programming |  Windows Programming |  BM_GETSTATE

 BM_GETSTATE

Determines the state of a button or check box.

Syntax

To send this message, call the SendMessage function as follows.

    lResult = SendMessage(       // returns LRESULT in lResult     
        (HWND) hWndControl,      // handle to destination control     
        (UINT) BM_GETSTATE,      // message ID     
        (WPARAM) wParam,         // = 0; not used, must be zero    
        (LPARAM) lParam          // = 0; not used, must be zero );

Parameters

Return Value

The return value specifies the current state of the button. You can use the following values to extract information about the state.

Message Information