Expand Minimize
0 out of 1 rated this helpful - 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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.