CheckDlgButton

Syntax

void CheckDlgButton(hDlg,nIDButton,wCheck)

This function places a checkmark next to or removes a checkmark from a button control, or changes the state of a three-state button. The CheckDlgButton function sends a BM_SETCHECK message to the button control that has the specified ID in the given dialog box.

Parameter Type/Description  

hDlg HWND Identifies the dialog box that contains the button.  
nIDButton int Specifies the button control to be modified.  
wCheck WORD Specifies the action to take. If the wCheck parameter is nonzero, the CheckDlgButton function places a checkmark next to the button; if zero, the checkmark is removed. For three-state buttons, if wCheck is 2, the button is grayed; if wCheck is 1, it is checked; if wCheck is 0, the checkmark is removed.  

Return Value

None.