CWnd::MoveWindow

Call this member function to change the position and dimensions of a window.

Syntax

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

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

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::SetWindowPos, WM_PAINT