CWindow::SetWindowPos

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

Syntax

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

BOOL SetWindowPos( HWND hWndInsertAfter, LPCRECT lpRect, UINT nFlags );

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CWindow Overview, CWindow Methods, CWindow::BringWindowToTop, CWindow::MoveWindow