CWnd::MoveWindow

This method changes the position and dimensions of a window.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void MoveWindow ( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );

void MoveWindow ( LPCRECT lpRect, BOOL bRepaint = TRUE );

Remarks

Windows CE ignores the bRepaint parameter and treats it as TRUE. This method always sends a WM_PAINT message to the window.

See Also

CWnd::SetWindowPos, WM_PAINT