Noob question about multiple Checkbox and Group box - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's 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 its 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


Sign In or Register to comment.