The information in this article applies to:
SYMPTOMSAn MFC ActiveX Control that contains a subclassed Edit control does not respond to the ARROW keys. More specifically, when a Visual Basic form contains the MFC ActiveX Control and the control has focus, the ARROW keys are not recognized. CAUSEThis behavior is the result of ARROW keys being accelerator keys. Accelerator keys are handled in the main message loop of the containing application before the window procedure of the control is called. As a result, the MFC ActiveX control is not aware that the ARROW keys have been pressed. Other accelerator keys include the TAB, END, and HOME keys. RESOLUTION
The problem can be resolved by adding the following code to your MFC
ActiveX Control. This code forwards the Accelerator Key messages onto your
MFC ActiveX Control:
STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
Q168777 PRB: MFC ActiveX Control in IE Doesn't Detect Keystrokes Additional query words:
Keywords : kbCtrlCreate kbVBp kbVBp500 kbVBp600 kbVC500 kbVC600 kbVS97 kbVS600 kbDSupport kbControl |
Last Reviewed: June 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |