CDockablePane::DockPaneContainer

Docks a container to the pane.

virtual BOOL DockPaneContainer(
   CPaneContainerManager& barContainerManager,
   DWORD dwAlignment,
   AFX_DOCK_METHOD dockMethod
);

Parameters

  • [in] barContainerManager
    A reference to the container manager of the container that is being docked.

  • [in] dwAlignment
    DWORD that specifies the side of the pane to which the container is being docked.

  • [in] dockMethod
    Not used.

Return Value

TRUE if the container was successfully docked to the pane; otherwise, FALSE.

Remarks

dwAlignment can be any of the following values:

Value

Description

CBRS_ALIGN_TOP

The container is being docked to the top of the pane.

CBRS_ALIGN_BOTTOM

The container is being docked to the bottom of the pane.

CBRS_ALIGN_LEFT

The container is being docked to the left of the pane.

CBRS_ALIGN_RIGHT

The container is being docked to the right of the pane.

Requirements

Header: afxdockablepane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart

CPaneContainerManager Class