titanandrews
Programmer
Hi,
I have a CPropertyPage, which has an overridden OnApply() function. I have several controls and labels on this page. On just 2 controls I have a problem where I hit their accelerator keys and the dialog closes. One of them is a label which has accelerator &J. The other is a combobox with accelerator &l. The dialog closes only if I do ALT+J or ALT+L. All the other accelerators work fine. It closes because for some reason a message is sent to call my OnApply() function. I don't understand why this is happening. Has anyone seen a similar problem to this before? Of course I have looked at the stack trace, but I still do not understand why this function is getting called automatically.
many thanks,
Barry
I have a CPropertyPage, which has an overridden OnApply() function. I have several controls and labels on this page. On just 2 controls I have a problem where I hit their accelerator keys and the dialog closes. One of them is a label which has accelerator &J. The other is a combobox with accelerator &l. The dialog closes only if I do ALT+J or ALT+L. All the other accelerators work fine. It closes because for some reason a message is sent to call my OnApply() function. I don't understand why this is happening. Has anyone seen a similar problem to this before? Of course I have looked at the stack trace, but I still do not understand why this function is getting called automatically.
many thanks,
Barry