CWnd::CheckDlgButton 

void CheckDlgButton( int nIDButton, UINT nCheck );

Parameters

nIDButton

Specifies the button to be modified.

nCheck

Specifies the action to take. If nCheck is nonzero, the CheckDlgButton member function places a check mark next to the button; if 0, the check mark is removed. For three-state buttons, if nCheck is 2, the button state is indeterminate.

Remarks

Selects (places a check mark next to) or clears (removes a check mark from) a button, or it changes the state of a three-state button.

The CheckDlgButton function sends a BM_SETCHECK message to the specified button.

CWnd OverviewClass MembersHierarchy Chart

See Also   CWnd::IsDlgButtonChecked, CButton::SetCheck, ::CheckDlgButton