• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 424
  • Last Modified:

floating the toolbar

I want to prohibit the user from floating the toolbar. How can i do this ?
0
MarcoHelmers
Asked:
MarcoHelmers
1 Solution
 
wpintoCommented:
Hi MacroHelmers,

Make sure that while creating the toolbar, you don't have the following styles set - CBRS_FLOATING, CBRS_DYNAMIC, CBRS_FLYBY. Replace all/any of the above styles with CBRS_FIXED. This also applies if you are using the SetBarStyle() function to set the style of the toolbar.

Also make sure that you do not call EnableDocking() or FloatControlBar() in the OnCreate() member function (or any other function) of the CFrameWnd derived classes.

Hope this helps

Wilfred
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now