I have a dialog written in VC++ as shown below:
Label1 Control1
Button1
If Control1 is disabled, using Label1's hotkey results in Button1's Click event. How could I avoid that? As Control1 is disabled shouldn't the hotkey for Label1 too?
I have a dialog written in VC++ as shown below:
Label1 Control1
Button1
If Control1 is disabled, using Label1's hotkey results in Button1's Click event. How could I avoid that? As Control1 is disabled shouldn't the hotkey for Label1 too?
If it's a CStatic, have you tried disabling it at the same time as the control it's referencing?