Link to home
Start Free TrialLog in
Avatar of DannyGan9
DannyGan9

asked on

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);
}
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DannyGan9
DannyGan9

ASKER

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!