The information in this article applies to:
SYMPTOMSThe menu mnemonics for an object do not operate properly, causing the system to hang. CAUSEThe server application is not calling OleTranslateAccelerator inside of its message loop. RESOLUTION
For menu commands to be dispatched properly during in-place editing,
OLE 2.0 needs to have the server application call
OleTranslateAccelerator, even if the server application does not have
accelerator support. This OLE application programming interface (API)
does the needed translation of key messages, and ensures that the
appropriate action occurs. Sample Code
MORE INFORMATION
When the object's server is a stand-alone .EXE and the in-place active
object gets a keystroke message that is not a recognized accelerator,
the object must check to see if the message is one that the container
recognizes by calling the OleTranslateAccelerator function. If the
container does not want the keystroke, then the
OleTranslateAccelerator function will return FALSE. In this case, the
object should continue using its normal TranslateMessage and
DispatchMessage code. Additional query words: 2.00 3.50 4.00
Keywords : kbole kbprg kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS2000 kbOLE200 kbWinOS95 kbGrpCom kbDSupport kbprb |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |