Condividi tramite


CWindow::SetWindowPos

Imposta la dimensione, posizione e l'ordine Z.

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

Note

Vedere SetWindowPos in Windows SDK.

La seconda versione di questo metodo utilizza una struttura RECT per impostare la nuova posizione, la larghezza e l'altezza della finestra.

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::BringWindowToTop

CWindow::MoveWindow

RECT