CWnd::SetForegroundWindow

Call this member function to put the thread that created the window into the foreground and activate the window.

Syntax

BOOL SetForegroundWindow ( );

At a Glance

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

Remarks

This member function activates the specified window and brings the thread that created it to the foreground, but the system does not automatically assign a higher priority to the foreground thread, as it does in Windows 95 and Windows NT.

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetFont