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.
BOOL SetWindowPos( HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );
BOOL SetWindowPos( HWND hWndInsertAfter, LPCRECT lpRect, UINT nFlags );
| Header file: | Atlwin.h | 
| Platforms: | |
| Versions: | Version 2.0 and later | 
| Complete documentation: | Visual C++ documentation | 
CWindow Overview, CWindow Methods, CWindow::BringWindowToTop, CWindow::MoveWindow