CWnd::CheckDlgButton

This method selects (places a check mark next to) or clears (removes a check mark from) a button, or changes the state of a three-state button. The CheckDlgButton method sends a BM_SETCHECK message to the specified button.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void CheckDlgButton( int nIDButton, UINT nCheck );

See Also

CWnd::IsDlgButtonChecked, CButton::SetCheck