Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::GetForegroundWindow
Collapse the table of content
Expand the table of content

CWnd::GetForegroundWindow

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

static CWnd* PASCAL GetForegroundWindow( );

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).

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft