Programming |  Windows Programming |  bm_getcheck

BM_GETCHECK

Gets the check state of a radio 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_GETCHECK,      // message ID     
        (WPARAM) wParam,        // = 0; not used, must be zero
        (LPARAM) lParam         // = 0; not used, must be zero 
    );   

Parameters

Return Value

The return value from a button created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE style can be one of the following.

Remarks

If the button has a style other than those listed, the return value is zero.

Message Information