Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CMDIFrameWndEx::DockPane

Docks the specified pane to the frame window.

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

Pointer to the pane to dock.

[in] nDockBarID

Specifies which sides of the frame window to dock to.

[in] lpRect

Not used.

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.

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);

Header: afxMDIFrameWndEx.h

Show:
© 2014 Microsoft. All rights reserved.