Condividi tramite


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

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

See Also

Reference

IOleComponent Interface

Microsoft.VisualStudio.OLE.Interop Namespace