Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alt+key closes dialog

Status
Not open for further replies.

titanandrews

Programmer
Joined
Feb 27, 2003
Messages
130
Location
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top