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
'Declaration
Function FPreTranslateMessage ( _
<OutAttribute> pMsg As MSG() _
) As Integer
int FPreTranslateMessage(
MSG[] pMsg
)
int FPreTranslateMessage(
[InAttribute] [OutAttribute] array<MSG>^ pMsg
)
abstract FPreTranslateMessage :
pMsg:MSG[] byref -> int
function FPreTranslateMessage(
pMsg : MSG[]
) : int
Parameters
pMsg
Type: array<Microsoft.VisualStudio.OLE.Interop.MSG[]The message.
Return Value
Type: 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.