Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function adds a check mark to a specified radio button in a group and removes a check mark from all other radio buttons in the group.
Syntax
BOOL CheckRadioButton( HWND hDlg, int nIDFirstButton, int nIDLastButton, int nIDCheckButton ); |
Parameters
- hDlg
-
[in] Handle to the dialog box that contains the radio button.
- nIDFirstButton
-
[in] Specifies the identifier of the first radio button in the group.
- nIDLastButton
-
[in] Specifies the identifier of the last radio button in the group.
- nIDCheckButton
-
[in] Specifies the identifier of the radio button to select.
Return Value
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
The CheckRadioButtonfunction sends a BM_SETCHECK message to each of the radio buttons in the indicated group.
Requirements
Header | winuser.h |
Library | Dlgmgr.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |