Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RADIO BUTTONS

Status
Not open for further replies.

gbarna

Instructor
Jan 20, 2002
2
US
How do I set a variable to indicate which radio button is checked. I know that I can use the GetCheckedRadioButton function, but I'm not sure what I need to include in order to use this.
Obviously I am a new user.
Can anyone HELP? PLEASE
 
To get or set the radio button state, do something like this:

[ignore]
CButton* pRadio = (CButton*) GetDlgItem(IDC_RADIO);

// get current radiobutton state
int iPosition = pRadio->GetCheck();

// set current radiobutton state
pRadio->SetCheck(1);
[/ignore]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top