UINT IsDlgButtonChecked(hwndDlg, idButton) | |||||
HWND hwndDlg; | /* handle of dialog box | */ | |||
int idButton; | /* button identifier, */ |
The IsDlgButtonChecked function determines whether a button has a check mark next to it and whether a three-state button is grayed, checked, or neither.
hwndDlg
Identifies the dialog box that contains the button.
idButton
Specifies the identifier of the button.
The return value is nonzero if the specified button is checked, 0 if it is not, or –1 if the hwndDlg parameter is invalid. For three-state buttons, the return value is 2 if the button is grayed, 1 if the button is checked, 0 if it is unchecked, or –1 if hwndDlg is invalid.
The IsDlgButtonChecked function sends a BM_GETCHECK message to the button.