Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::IsDlgButtonChecked
Collapse the table of content
Expand the table of content

CWnd::IsDlgButtonChecked

Determines whether a button control has a check mark next to it.

UINT IsDlgButtonChecked(
   int nIDButton 
) const;

Parameters

nIDButton
Specifies the integer identifier of the button control.

Return Value

Nonzero if the given control is checked, and 0 if it is not checked. Only radio buttons and check boxes can be checked. For three-state buttons, the return value can be 2 if the button is indeterminate. This member function returns 0 for a pushbutton.

Remarks

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

See Also

CWnd Overview | Class Members | Hierarchy Chart | IsDlgButtonChecked | CButton::GetCheck

Show:
© 2015 Microsoft