Compartir a través de


CWindow::MoveWindow

Changes the window's size and position.

BOOL MoveWindow(
   int x,
   int y,
   int nWidth,
   int nHeight,
   BOOL bRepaint = TRUE 
) throw();
BOOL MoveWindow(
   LPCRECT lpRect,
   BOOL bRepaint = TRUE 
) throw();

Remarks

For a top-level window object, the x and y parameters are relative to the upper-left corner of the screen. For a child window object, they are relative to the upper-left corner of the parent window's client area.

The second version of this method uses a RECT structure to determine the window's new position, width, and height.

Requirements

Header: atlwin.h

See Also

Concepts

CWindow Class

CWindow Members

CWindow::SetWindowPos