다음을 통해 공유


WindowEventsClass.WindowActivated 이벤트

이 API는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

포커스가 창으로 이동하면 발생합니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
Public Overridable Event WindowActivated As _dispWindowEvents_WindowActivatedEventHandler
public virtual event _dispWindowEvents_WindowActivatedEventHandler WindowActivated
public:
virtual   event _dispWindowEvents_WindowActivatedEventHandler^ WindowActivated {
    void add (_dispWindowEvents_WindowActivatedEventHandler^ value);
    void remove (_dispWindowEvents_WindowActivatedEventHandler^ value);
}
abstract WindowActivated : IEvent<_dispWindowEvents_WindowActivatedEventHandler,
    EventArgs>
override WindowActivated : IEvent<_dispWindowEvents_WindowActivatedEventHandler,
    EventArgs>
JScript에서는 이벤트를 지원하지 않습니다.

구현

_dispWindowEvents_Event.WindowActivated

설명

WindowActivated 이벤트는 개발 환경이 완전히 초기화될 때까지 발생하지 않으며 환경을 시작하는 동안 포커스를 받는 첫째 창에 대해 발생하지 않습니다.

예제

Public Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated
   MsgBox("test")
End Sub

.NET Framework 보안

참고 항목

참조

WindowEventsClass 클래스

EnvDTE 네임스페이스