Export (0) Print
Expand All
Expand Minimize


Returns a pointer to the foreground window (the window with which the user is currently working).

static CWnd* PASCAL GetForegroundWindow( );

Return Value

A pointer to the foreground window. This may be a temporary CWnd object.


The foreground window applies only to top-level windows (frame windows or dialog boxes).

See Also

CWnd Overview | Class Members | Hierarchy Chart | CWnd::SetForegroundWindow

© 2014 Microsoft