Udostępnij za pośrednictwem


CMDIFrameWndEx::DockPane

Docks the specified pane to the frame window.

void DockPane(
   CBasePane* pBar,
   UINT nDockBarID=0,
   LPCRECT lpRect=NULL 
);

Parameters

  • [in] pBar
    Pointer to the pane to dock.

  • [in] nDockBarID
    Specifies which sides of the frame window to dock to.

  • [in] lpRect
    Not used.

Remarks

This method docks the specified the pane to one of the sides of the frame window that was specified when CBasePane::EnableDocking and CMDIFrameWndEx::EnableDocking were called.

Example

The following example demonstrates the use of the DockPane method. This code snippet comes from the VisualStudioDemo Sample: MFC Visual Studio Application.

    DockPane(&m_wndMenuBar);
    DockPane(&m_wndToolBar);
    DockPane(&m_wndPropertiesBar);

    DockPane(&m_wndToolbarBuild);

Requirements

Header: afxMDIFrameWndEx.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMDIFrameWndEx Class