Click to See Complete Forum and Search --> : Quick Question


Nathan Strandberg
April 7th, 1999, 02:56 PM
I'm trying to put two wizards together. The user can check a radio button with a varible of m_Typical, if they select the Custom button then click Next it will start another wizard, if not they will start to install the software.
I tried this but it can't find the varible:

if (m_Typical);
{
CInstall.DoModal();
}
else
CCustom.DoModal();
}
}

I'm sure it wrong, but can someone check it and help me with it.

Thanks,
Nathan Strandberg

Allen Yuh
April 7th, 1999, 03:45 PM
You need to call UpdateData() before you access the variable (m_Typical). that function will do DDX and set the varible value depending on user's selection. Hope this will help. Good luck.

Allen

Masaaki
April 7th, 1999, 03:58 PM
Hi.
When I use radio button which must be grouped, I use BN_CLICKED message handler
by class wizard.
When I clicked one radio button by this message handler,
I put the code m_btnOne.SetCheck(CHECKED or UNCHECKED) - I forget.
I put all radio buttons each time.
This is absolute manual work.
In this case, I didn't put UpdateData().

Hope for help.
-Masaaki Onishi-

cdmahesh
April 16th, 2001, 12:07 AM
Hi
u can try like this also...

int iCheck;
iCheck =
GetCheckedRadioButton(IDC_RADIO1,IDC_RADIO2);
if(iCheck == IDC_RADIO1)
CInstall.DoModal();
else
CCustom.DoModal();


Hope this works fine.

& also try removing that semicolon after

condition in the if statement

Good Luck

Bye

Mahesh Kumar C D