CWnd::GetForegroundWindow

Call this member function to obtain a pointer to the foreground window (the window with which the user is currently working).

Syntax

static CWnd* PASCAL GetForegroundWindow( );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories