Udostępnij za pośrednictwem


WindowEvents Interface

Provides events for changes made to Windows in the environment. Use this object for functionality and refer to WindowEventsClass for this object’s documentation.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
<GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")> _
Public Interface WindowEvents _
    Inherits _WindowEvents, _dispWindowEvents_Event
[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
[<GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")>]
type WindowEvents =  
    interface
        interface _WindowEvents
        interface _dispWindowEvents_Event
    end
public interface WindowEvents extends _WindowEvents, _dispWindowEvents_Event

The WindowEvents type exposes the following members.

Methods

  Name Description
Public method add_WindowActivated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method add_WindowClosing Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method add_WindowCreated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method add_WindowMoved Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method remove_WindowActivated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method remove_WindowClosing Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method remove_WindowCreated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public method remove_WindowMoved Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)

Top

Events

  Name Description
Public event WindowActivated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public event WindowClosing Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public event WindowCreated Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)
Public event WindowMoved Infrastructure. Microsoft Internal Use Only. (Inherited from _dispWindowEvents_Event.)

Top

Remarks

The WindowEvents object is returned by DTE.Events.

Examples

<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

See Also

Reference

EnvDTE Namespace