Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Remarks
The foreground window applies only to top-level windows (frame windows or dialog boxes).
Requirements
Header: afxwin.h