Compartilhar via


CMDIFrameWndEx::InsertPane

Registers the specified pane with the docking manager.

BOOL InsertPane(
   CBasePane* pControlBar,
   CBasePane* pTarget,
   BOOL bAfter=TRUE 
);

Parameters

  • [in] pControlBar
    A pointer to the pane to be inserted.

  • [in] pTarget
    A pointer to the pane before or after which to insert the pane.

  • [in] bAfter
    If TRUE, pControlBar is inserted after pTarget. If FALSE, pControlBar is inserted before pTarget.

Return Value

TRUE if the method successfully registers the pane, FALSE if the pane was already registered with the docking manager.

Remarks

Use this method to tell the docking manager about a pane specified by pControlBar. The docking manager will align this pane according to the pane's alignment and position in the docking manager's internal list.

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart

CDockingManager Class