Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Noob question about multiple Checkbox and Group box
Hi there. I'm mainly an embedded systems programmer and have been trying to create an application using VC++ 6.0.
My problem is->
I have a group of check boxes that will run the exact same code when pressed (basically toggle the corresponding relay).
Rather than adding an event handler for each checkbox, Can I just enter one function which will then read which checkbox was changed?
I have similar checkboxes encapsulated in a Group Box if that will help my any (I only added the group box to help the user make sense of the check boxes). Cheers, Lucius
EDIT: it is MFC btw