Home > Back-end >  Radio Radio button control problem. Please solve!
Radio Radio button control problem. Please solve!

Time:10-01

Now I want to keep single box is selected, A light box, B and extinguish A himself, is to choose A, but B lit,
Void CRadio3Dlg: : OnRadio1 ()
{
//TODO: Add your the control notification handler code here
M_radio=1;
The UpdateData (FALSE);
AfxMessageBox (" 1 ");
}

Void CRadio3Dlg: : OnRadio2 ()
{
//TODO: Add your the control notification handler code here
AfxMessageBox (" 2 ");
}
M_radio group corresponding variables for the two controls,

The question now is, after the success of the ask what interface will pop up after being covered many times AfxMessageBox (" 1 "); Information?

CodePudding user response:

The logic for you? When the selected light B, extinguish a. don't think this logic will create chaos?

CodePudding user response:

This estimate is control problem of events, put the code on the radio button of the mouse click or raise events can be solved

CodePudding user response:

The UpdateData, should be virtual function overloading
  • Related