I need some help in MFC. The following is my problem:
- I have two controls a static text and a checkbox
- When using MFC Wizard, i place a '&' in front of one of the letters in the static text, while executing if i press Alt+, the checkbox either gets enabled or disabled.
- Now my problem is i am adding these controls programaticaly, and even though i have the '&' placed in the static text, if i press the Alt+, it doesn't change the state of the checkbox control.
My queries are:
- Can anyone kindly let me know if there is some binding which has to be done in case we are adding the controls programatically.
- If someone can briefly explain how the binding is taken care by MFC it will be gr8 help
edit: One more thing the checkbox won't have any text associated with it.