共用方式為


CMDIFrameWndEx::DockPaneLeftOf

Docks one pane to the left of another pane.

BOOL DockPaneLeftOf(
   CPane* pBar,
   CPane* pLeftOf 
);

Parameters

  • [in] pBar
    A pointer to the docking pane.

  • [in] pLeftOf
    A pointer to the pane that serves as the dock site. .

Return Value

Returns TRUE if the operation is successful. Otherwise returns FALSE.

Remarks

Call this method to dock several pane objects in a predefined order. This method docks the pane specified by pBar to the left of the pane specified by pLeftOf.

Example

The following example shows how the DockPaneLeftOf method is used in the VisualStudioDemo Sample: MFC Visual Studio Application.

   DockPane(&m_wndToolbarBuild);
    DockPaneLeftOf(&m_wndToolbarEdit, &m_wndToolbarBuild);

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart