CWindow::BringWindowToTop

对Z顺序的顶部显示窗口。

BOOL BringWindowToTop( ) throw();

备注

在参见 Windows SDK的 BringWindowToTop

示例

//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 myWindow;
myWindow.Attach(hWnd);
BOOL bOnTop = myWindow.BringWindowToTop();

//check if we could bring the window on top 
if(bOnTop)
{
   //Do something
}

要求

Header: atlwin.h

请参见

参考

CWindow Class

CWindow::MoveWindow

CWindow::SetWindowPos