IsDlgButtonChecked

2.x

  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.

Parameters

hwndDlg

Identifies the dialog box that contains the button.

idButton

Specifies the identifier of the button.

Return Value

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.

Comments

The IsDlgButtonChecked function sends a BM_GETCHECK message to the button.

See Also

CheckDlgButton, CheckRadioButton