CWnd::SetForegroundWindow

This method puts the thread that created the window into the foreground and activate the window.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL SetForegroundWindow ( );

Remarks

This method 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::GetFont