IOleComponent2 接口

,当等待句柄时,使组件参与处理的消息。

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

语法

声明
<InterfaceTypeAttribute()> _
<GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")> _
Public Interface IOleComponent2 _
    Inherits IOleComponent
[InterfaceTypeAttribute()]
[GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
public interface IOleComponent2 : IOleComponent

IOleComponent2 类型公开以下成员。

方法

  名称 说明
公共方法 FContinueMessageLoop(UInt32, IntPtr, array<MSG[]) 对消息循环的每次迭代时。 (继承自 IOleComponent。)
公共方法 FContinueMessageLoop(UInt32, IntPtr, array<MSG[])
公共方法 FDoIdle(UInt32) 将该元素的机会执行空闲时间任务。 (继承自 IOleComponent。)
公共方法 FDoIdle(UInt32)
公共方法 FPreTranslateMessage(array<MSG[]) ,它将转换和调度之前,处理消息。 (继承自 IOleComponent。)
公共方法 FPreTranslateMessage(array<MSG[])
公共方法 FQueryTerminate(Int32) 调用,当组件管理器希望知道元素是否在它可以终止状态。 (继承自 IOleComponent。)
公共方法 FQueryTerminate(Int32)
公共方法 FReserved1(UInt32, UInt32, IntPtr, IntPtr) 保留。 (继承自 IOleComponent。)
公共方法 FReserved1(UInt32, UInt32, IntPtr, IntPtr)
公共方法 GetWaitHandlesAndTimeout 当重写在派生类中,返回超时和此元素等待句柄的列表。
公共方法 HwndGetWindow(UInt32, UInt32) 获取窗口与组件关联。 (继承自 IOleComponent。)
公共方法 HwndGetWindow(UInt32, UInt32)
公共方法 OnActivationChange(IOleComponent, Int32, array<OLECRINFO[], Int32, array<OLECHOSTINFO[], UInt32) 激活时,时,请注意元素新的对象。 (继承自 IOleComponent。)
公共方法 OnActivationChange(IOleComponent, Int32, array<OLECRINFO[], Int32, array<OLECHOSTINFO[], UInt32)
公共方法 OnAppActivate(Int32, UInt32) ,在宿主应用程序获取或丢失启动时,请注意元素。 (继承自 IOleComponent。)
公共方法 OnAppActivate(Int32, UInt32)
公共方法 OnEnterState(UInt32, Int32) ,在应用程序进入或退出该指定的状态时,请注意元素。 (继承自 IOleComponent。)
公共方法 OnEnterState(UInt32, Int32)
公共方法 OnHandleSignaled 当重写在派生类,使组件响应在等待句柄的信号。
公共方法 OnLoseActivation() 通知有效部分它将丢失其活动状态,因为宿主或其他元素变为活动状态。 (继承自 IOleComponent。)
公共方法 OnLoseActivation()
公共方法 OnTimeout 当重写在派生类,使组件响应消息循环的超时。
公共方法 Terminate() 终止消息循环。 (继承自 IOleComponent。)
公共方法 Terminate()

页首

备注

若要将元素添加到消息循环和接收信号的通知,请调用与 oleloopModelessFormWithHandlesoleloopModelessFormWithHandlesNoIdle的 uReason 参数值的 FPushMessageLoop

请参见

参考

Microsoft.VisualStudio.Shell.Interop 命名空间

IOleComponentManager

_OLELOOP2