radio button...

when i clicked the things  which is also the radio button, i would like to unable the others radio button which already checked!


void CRDStockInventoryView::OnWithdrawal() (radio button)
{
      button = (CButton*)GetDlgItem(IDC_NONBP1); //prevous radio button  (BUT it will became uncheck.))
      button->EnableWindow(false);
}
DannyGan9Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
If you have the radio buttons in order (resource editor).  Set the first radio to be group AND the next control in tab order AFTER the last radio button to group, all other radio buttons are not group.  Windows will now do it for you.
0
 
DannyGan9Author Commented:
void CRDStockInventoryView::OnWithdrawal() (radio button  i pressing)
{
     button = (CButton*)GetDlgItem(IDC_NONBP1); //prevous radio button  (BUT it will became   uncheck.))
     button->EnableWindow(false);
}


My problem is when i checking the current radio button, i would like to unable the previous radio button i checked, BUT from above coding i did, which just can unable the radio button only (my previous checked radio button is gone)!!!!  

Got Any Solution about this? TQ!
0
All Courses

From novice to tech pro — start learning today.