Notifications
Clear all
[Closed] sdk enable/disable
Feb 18, 2016 6:34 pm
Does anyone have examples showing how to disable/enable various controls in a paramblock2 based on a checkbox.
I know by default you can supply the checkbox controls which get disabled/enabled automatically, however in my case i need them to be disable and others to be enabled based on a checkbox state.
1 Reply
Feb 18, 2016 6:34 pm
You can enable/disable any control with the handy command:
EnableWindow(GetDlgItem([hwnd], [idc_val]), [state]);
If you want to disable some controls when a checkbox is checked, for example, just set the state of the control to the inverse of the checkbox state. Lots of examples of this command being used in the SDK sample files.