Call this member function to change the position and dimensions of a window.
void MoveWindow ( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );
void MoveWindow ( LPCRECT lpRect, BOOL bRepaint = TRUE );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE ignores the bRepaint parameter and treats it as TRUE. This function always sends a WM_PAINT message to the window.
CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::SetWindowPos, WM_PAINT