Thursday, May 17, 2012
Call Toll Free: (877) 723-1442 U.S. and Canada
Quick Menu
ActiveX / COM
Visual C++ / MFC
Case Studies
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Keep Docking Panes from Drawing Over CommandBars

Author: Mike Palmatier
Posted: April 26, 2008
Environment: Visual Basic 6.0

To keep the Docking Panes from drawing over top of the CommandBars you need to right-click on the docking pane control on your form and set "Send To Back" as in the picture below. The ComandBars object must be "in-front" of the DockingPane control:

Next, add the code below to tell the docking panes that command bars are being used. SetCommandBars sets a CommandBars object to be associate with this DockingPane object. When using both DockingPanes and CommandBars in the same form, the CommandBars must be associated with the DockingPane control. This is necessary for correct resizing and layout of controls on the form.

DockingPaneManager.SetCommandBars Me.CommandBars