Click to See Complete Forum and Search --> : Accelerators


chandra_s
May 10th, 1999, 04:01 PM
Hi,

I have a CFormView derived view in my application. I have an edit box on this
view. I am using a CEdit derived class with special processing logic for handling the WM_CHAR and WM_KEYDOWN messages for this edit box. I wish to be able to trap the key sequence CTRL + '`' + 'A' in the edit box.

I also have an accelerator sequence of CTRL + A for the mainframe window. This is causing a conflict with the key sequence I am trapping. So
when I hit CTRL+ '`' + 'A' with the focus in the edit box, instead of the edit class handling it, the mainframe seems to be handling it and the action associated with the accelerator is being fired. When I use a modal dialog
instead of a CFormView, things work the way I want them to, i.e my key sequence gets executed, not the accelerator.

How do I avoid the accelerator being fired?

Any help, hints would be highly appreciated.

TIA,
Chandra