Compartilhar via


CDockablePane::ReplacePane

Replaces the pane with a specified pane.

BOOL ReplacePane(
   CDockablePane* pBarToReplaceWith,
   AFX_DOCK_METHOD dockMethod,
   BOOL bRegisterWithFrame = FALSE
);

Parameters

  • [in] pBarToReplaceWith
    A pointer to a dockable pane.

  • [in] dockMethod
    Not used.

  • [in] bRegisterWithFrame
    If TRUE, the new pane is registered with the docking manager of the parent of the old pane. The new pane is inserted at the index of the old pane in the list of panes that is maintained by the docking manager.

Return Value

TRUE if the replacement is successful; otherwise, FALSE.

Requirements

Header: afxdockablepane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart