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

  • Thread starter Thread starter 31si
  • Start date Start date
  • Tags Tags
    Radio
AI Thread Summary
To retrieve the checked state of a radio button in Visual C++ without using MFC, the discussion highlights the use of the GetCheck() method on a CButton member object. By declaring a CButton member, such as m_MyRadio, within the dialog, the checked status can be easily accessed using m_MyRadio.GetCheck(). This approach provides a straightforward solution for managing radio button states in a non-MFC environment.
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?
 
Technology 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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top