CWindow::SetWindowPos

设置大小、位置和Z顺序。

BOOL SetWindowPos( 
   HWND hWndInsertAfter, 
   int x, 
   int y, 
   int cx, 
   int cy, 
   UINT nFlags  
) throw(); 
BOOL SetWindowPos( 
   HWND hWndInsertAfter, 
   LPCRECT lpRect, 
   UINT nFlags  
) throw();

备注

在参见 Windows SDK的 SetWindowPos

此方法的第二个版本使用一 RECT 结构设置窗口的新位置、宽度和高度。

要求

Header: atlwin.h

请参见

参考

CWindow Class

CWindow::BringWindowToTop

CWindow::MoveWindow

RECT