PDA

View Full Version : Win32 Radio button


31si
Dec19-08, 09:18 AM
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?

KAckermann
Dec19-08, 03:40 PM
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.