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 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top