Поделиться через


CWindow::SetWindowPos

Sets the size, position, and Z order.

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

Заметки

See SetWindowPos in the Windows SDK.

The second version of this method uses a RECT structure to set the window's new position, width, and height.

Требования

Header: atlwin.h

См. также

Основные понятия

CWindow Class

CWindow Members

CWindow::BringWindowToTop

CWindow::MoveWindow

RECT