IOleComponent.FPreTranslateMessage Method
Processes the message before it is translated and dispatched.
Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'宣告
Function FPreTranslateMessage ( _
<OutAttribute> pMsg As MSG() _
) As Integer
int FPreTranslateMessage(
MSG[] pMsg
)
Parameters
- pMsg
Type: array<Microsoft.VisualStudio.OLE.Interop.MSG[]
The message.
Return Value
Type: System.Int32
true if the message is consumed, false otherwise.
Remarks
The component can do TranslateAccelerator or IsDialogMessage, modify the message, or take some other action.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.