I'm writeing a MFC program and I have three radio buttons in a group. I want to initialize the one( in the OnInitDialog() function) to be set. I don't know what function to use.
I'm writeing a MFC program and I have three radio buttons in a group. I want to initialize the one( in the OnInitDialog() function) to be set. I don't know what function to use.
Last edited by Gravedigga; 01-07-2004 at 03:27 PM.
CButton::SetCheck
void SetCheck( int nCheck );
Parameters
nCheck
Specifies the check state. This parameter can be one of the following:
Value Meaning
0 Set the button state to unchecked.
1 Set the button state to checked.
2 Set the button state to indeterminate. This value can be used only if the button has the BS_3STATE or BS_AUTO3STATE style.
Remarks
Sets or resets the check state of a radio button or check box. This member function has no effect on a pushbutton.
Want to learn? Then try to teach...