CWindow::SetWindowPos

The first implementation of this method sets the window size, position, and z-order. The second implementation of this method uses a RECT structure to set the window’s new position, width, and height.

At a Glance

Header file: Atlwin.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

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

See Also

CWindow::BringWindowToTop, CWindow::MoveWindow