Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CFrameWnd::EnableDocking 

Call this function to enable dockable control bars in a frame window.


void EnableDocking(
   DWORD dwDockStyle 
);

Parameters

dwDockStyle

Specifies which sides of the frame window can serve as docking sites for control bars. It can be one or more of the following:

  • CBRS_ALIGN_TOP   Allows docking at the top of the client area.

  • CBRS_ALIGN_BOTTOM   Allows docking at the bottom of the client area.

  • CBRS_ALIGN_LEFT   Allows docking on the left side of the client area.

  • CBRS_ALIGN_RIGHT   Allows docking on the right side of the client area.

  • CBRS_ALIGN_ANY   Allows docking on any side of the client area.

By default, control bars will be docked to a side of the frame window in the following order: top, bottom, left, right.

See the example for CToolBar::Create.

Community Additions

ADD
Show:
© 2015 Microsoft