Win32 Radio Button Code for Visual C++ | No MFC

  • Context: C/C++ 
  • Thread starter Thread starter 31si
  • Start date Start date
  • Tags Tags
    Radio
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 7K views
31si
Messages
21
Reaction score
0
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?
 
Physics news on Phys.org
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.