WindowEvents 接口
更新:2007 年 11 月
为环境中的“窗口”更改提供事件。使用此对象实现功能,有关此对象的文档,请参考 WindowEventsClass。
命名空间: EnvDTE
程序集: EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")> _
Public Interface WindowEvents _
Implements _WindowEvents, _dispWindowEvents_Event
用法
Dim instance As WindowEvents
[GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")]
public interface WindowEvents : _WindowEvents,
_dispWindowEvents_Event
[GuidAttribute(L"0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")]
public interface class WindowEvents : _WindowEvents,
_dispWindowEvents_Event
public interface WindowEvents extends _WindowEvents, _dispWindowEvents_Event
备注
DTE.Events 返回 WindowEvents 对象。
示例
<System.ContextStaticAttribute()> Public WithEvents WindowEvents As EnvDTE.WindowEvents
Public Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated
MsgBox("test")
End Sub