Share via


CPane::MovePane

Moves the pane to the specified rectangle.

virtual CSize MovePane(
   CRect rectNew,
   BOOL bForceMove,
   HDWP& hdwp
);

Parameters

  • [in] rectNew
    Specifies the new rectangle for the pane.

  • [in] bForceMove
    If TRUE, this method ignores the minimum allowed pane size (CPane::GetMinSize); otherwise, the pane is adjusted, if necessary, to ensure that it is at least the minimum allowed size.

  • [in] hdwp
    Not used.

Return Value

A CSize object that contains the differences in width and height between the new and old rectangles (old rectangle –rectNew).

Remarks

This method is used only for dockable panes.

Requirements

Header: afxpane.h

See Also

Reference

CPane Class

Hierarchy Chart