1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Win32 Radio button

  1. Dec 19, 2008 #1
    Hello

    I have googled to no avail. I am after the code to retrieve if a radio box is checked or not in Visual C++. I am not using MFC which all of the tutorial on the internet do. Any ideas? A few pointers in the right direction possibly?
     
  2. jcsd
  3. Dec 19, 2008 #2
    I always bind my controls to a class member. If I declared a CButton member object in my dialog named m_MyRadio, then:

    m_MyRadio.GetCheck ();

    will do the trick.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?