I have a window with 4 checkboxes and 4 edit fields at their side. Whenever a checkBox is checked the edit field right beside should become enabled. And if a checkbox is unchecked, the corresponding edit field should get disabled.
How to do it? What message am i looking for?
Thanks :)
[Robert]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Checking or unchecking a checkbox generates the usual WM_COMMAND message, with the wParam indicating the checkbox ID. When handling the message read the state of the checkbox and enable or disable the corresponding edit field.
rpeter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a window with 4 checkboxes and 4 edit fields at their side. Whenever a checkBox is checked the edit field right beside should become enabled. And if a checkbox is unchecked, the corresponding edit field should get disabled.
How to do it? What message am i looking for?
Thanks :)
[Robert]
Checking or unchecking a checkbox generates the usual WM_COMMAND message, with the wParam indicating the checkbox ID. When handling the message read the state of the checkbox and enable or disable the corresponding edit field.
rpeter