Partager via


CDockablePane::OnBeforeChangeParent

The framework calls this method before it changes the parent of the pane.

virtual void OnBeforeChangeParent(
   CWnd* pWndNewParent,
   BOOL bDelay = FALSE
);

Parameters

  • [in] pWndNewParent
    A pointer to the new parent window.

  • [in] bDelay
    BOOL that specifies whether to delay recalculation of the docking layout if the pane is undocked. For more information, see CDockablePane::UndockPane.

Remarks

If the pane is docked and the new parent does not allow docking, this method undocks the pane.

If the pane is being converted to a tabbed document, this method stores its recent docking position. The framework uses the recent docking position to restore the position of the pane when it is converted back to a docked state.

Requirements

Header: afxdockablepane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart