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

    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook