共用方式為


CWindow::SetWindowPos

設定的大小、位置和疊置順序。

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

這個方法的第二個版本使用 的長度 結構將視窗的新位置、寬度和高度。

需求

Header: atlwin.h

請參閱

參考

CWindow 類別

CWindow::BringWindowToTop

CWindow::MoveWindow

RECT