COleControlContainer::IsDlgButtonChecked

Determines the state of the specified button.

virtual UINT IsDlgButtonChecked(
   int nIDButton 
) const;

Parameters

  • nIDButton
    The identifier of the button control.

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:

  • BST_CHECKED   Button is checked.

  • BST_INDETERMINATE   Button is grayed, indicating an indeterminate state (applies only if the button has the BS_3STATE or BS_AUTO3STATE style).

  • BST_UNCHECKED   Button is cleared.

Remarks

If the button is a three-state control, the member function determines whether it is dimmed, checked, or neither.

Requirements

Header: afxocc.h

See Also

Reference

COleControlContainer Class

Hierarchy Chart

Other Resources

COleControlContainer Members