Compartilhar via


CBasePane::SetWindowPos

Changes the size, position, and Z-order of a pane.

virtual HDWP SetWindowPos(
   const CWnd* pWndInsertAfter,
   int x,
   int y,
   int cx,
   int cy,
   UINT nFlags,
   HDWP hdwp = NULL
);

Parameters

  • [in] pWndInsertAfter
    Identifies the CWnd object that comes before this CWnd object in the Z-order. For more information, see CWnd::SetWindowPos.

  • [in] x
    Specifies the position of the left side of the window.

  • [in] y
    Specifies the position of the top of the window.

  • [in] cx
    Specifies the width of the window.

  • [in] cy
    Specifies the height of the window.

  • [in] nFlags
    Specifies size and position options. For more information, see CWnd::SetWindowPos.

  • [in] hdwp
    Handle to a structure that contains size and position information for one or more windows.

Return Value

A handle to an updated deferred window position structure, or NULL.

Remarks

If pWndInsertAfter is NULL, this method calls CWnd::SetWindowPos. If pWndInsertAfter is non-NULL, this method calls DeferWindowPos.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart