MFC Radio Button

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

In MFC dialog, I have 3 radio buttons in a group box

#define IDC_RADIO1 1001
#define IDC_RADIO2 1005
#define IDC_RADIO3 1008

The group property is set true for IDC_RADIO1.

CButton m_radio1;
CButton m_radio2;
CButton m_radio3;


If I call,

m_radio1.SetCheck(true);
m_radio2.SetCheck(true);

why radio button 1 and 2 are getting selected. why radio button 1 is not getting deselected when calling m_radio2.SetCheck(true);.

Thanks in advance.

Continue reading...
 
Back
Top