|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.|
This inline function sets the check state of a radio button or check box in a specified dialog box.
__inline BOOL WINAPI CheckDlgButton( HWND hDlg, int nIDButton, UINT uCheck );
[in] Handle to the dialog box that contains the radio button or check box.
[in] Integer that specifies the identifier of the radio button or check box for which you want to set the check state.
[in] Unsigned integer that specifies the check state for the radio button or check box. The following table shows the possible values.
Sets the button state to checked.
Sets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.
Sets the button state to unchecked.
This function always returns zero.
This function has no effect on push buttons.
|Windows Embedded CE||Windows CE .NET 4.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|