application's accelerators interfering with edit box on form view
-
I am using Visual C++ .NET 2003 and made a MFC multiple document application with a form view (CFormView). On that view is placed an edit box to which I connected a CString variable (including all those "DDX_Text(pDX, IDC_EDIT_NAME, m_Name)" etc.). In addition my application has keyboard shortcuts, defined in "Accelerator" in the ressource editor. The problem is that those shortcuts interfere when I want to enter a text into the edit box, e.x. my shortcut keys don't result in a letter in the edit box but do the shortcut stuff (opening a dialog, etc.). Is it possible to somehow override/disable all the keyboard shortcuts when the focus is on the edit box? If that's possible I could catch ON_EN_SETFOCUS and ON_EN_KILLFOCUS in the form view and disable and later enable again the accelerators. Or do I have to write my own control derived from CEdit? (hopefully not...) Will the accelerators still have priority over my own control then or viceversa? (if yes even an own control won't help...) Thanks & Bye, T.T.H. P.S.: I searched Codeproject on this problem for over an hour by now...