CWindow::SetWindowPos

Legt die Größe, Position und die z-Ordnung fest.

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

Hinweise

Siehe SetWindowPos in Windows SDK.

Die zweite Version dieser Methode verwendet eine RECT-Struktur, um für die neue Position, Breite und Höhe Fensters festzulegen.

Anforderungen

Header: atlwin.h

Siehe auch

Referenz

CWindow-Klasse

CWindow::BringWindowToTop

CWindow::MoveWindow

RECT