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();
Remarks
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.
Requirements
Header: atlwin.h