BOOL BringWindowToTop( );
See BringWindowToTop in the Win32 SDK.
Remarks
Brings the window to the top of the Z order.
Example
//The following example attaches an HWND to the CWindow object and
//calls CWindow::BringWindowToTop() to bring the window to the top
//of the z-order.
CWindow fooWindow;
fooWindow.Attach(hWndFoo);
Bool bOnTop = fooWindow.BringWindowToTop();
//check if we could bring the window on top
if(bOnTop)
{
//Do something
...
}
CWindow Overview | Class Members
See Also CWindow::MoveWindow, CWindow::SetWindowPos