Condividi tramite


CWnd::GetActiveWindow

Retrieves a pointer to the active window.

static CWnd* PASCAL GetActiveWindow( );

Return Value

The active window or NULL if no window was active at the time of the call. The pointer may be temporary and should not be stored for later use.

Remarks

The active window is either the window that has the current input focus or the window explicitly made active by the SetActiveWindow member function.

Requirements

Header: afxwin.h

See Also

Concepts

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::SetActiveWindow

GetActiveWindow