The information in this article applies to:
SYMPTOMSMFC supports the creation of ActiveX controls that can merge a menu resource with its container application though the COleControl::OnGetInPlaceMenu() function, as illustrated by the MFC Button sample. However, you may find that menu items belonging to an MFC ActiveX control cannot be invoked through the keyboard. CAUSEThe default implementation of an MFC ActiveX control does not give the container application a chance to process menu mnemonics. RESOLUTION
To work around this problem, you need to give the container an opportunity to translate menu mnemonics by calling the OleTranslateAccelerator() from the control's PreTranslateMessage() function. You can use the following steps to do this.
STATUSThe MFC implementation at this time does not forward keyboard requests on for menu mnemonics. This is a limitation in the MFC framework that can be worked around with the resolution earlier. MORE INFORMATIONSteps to reproduce behavior
REFERENCES
For additional information concerning handling accelerators and menu mnemonics for in-place active objects, such as ActiveX controls, please consult the following sources of information:
Q104460 PRB: Menu Mnemonics Not Working During In-Place Activation. Additional query words: PreTranslateMessage TranslateAccelerator keyboard
Keywords : kbActiveX kbCOMt kbContainer kbCtrlCreate kbKeyAccel kbMFC kbVC500 kbVC600 kbDSupport kbGrpMFCATL |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |