Solved

radio button...

Posted on 2004-11-01
257 Views
Last Modified: 2013-11-20
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);
}
0
Question by:DannyGan9
    2 Comments
     
    LVL 43

    Accepted Solution

    by:
    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
     

    Author Comment

    by:DannyGan9
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    857 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now