IOleComponent.FPreTranslateMessage 方法

,它将转换和调度之前,处理消息。

命名空间:  Microsoft.VisualStudio.OLE.Interop
程序集:  Microsoft.VisualStudio.OLE.Interop(在 Microsoft.VisualStudio.OLE.Interop.dll 中)

语法

声明
Function FPreTranslateMessage ( _
    <OutAttribute> pMsg As MSG() _
) As Integer
int FPreTranslateMessage(
    MSG[] pMsg
)

参数

返回值

类型:System.Int32
true ,如果消息被使用,否则 false 。

备注

组件可以执行 TranslateAccelerator 或 IsDialogMessage,修改消息或执行一些其他操作。

.NET Framework 安全性

请参见

参考

IOleComponent 接口

Microsoft.VisualStudio.OLE.Interop 命名空间