Solved

floating the toolbar

Posted on 1997-11-08
1
410 Views
Last Modified: 2013-11-19
I want to prohibit the user from floating the toolbar. How can i do this ?
0
Comment
Question by:MarcoHelmers
1 Comment
 
LVL 2

Accepted Solution

by:
wpinto earned 50 total points
ID: 1309594
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 108
How to determine file rename from EventLog ? 2 49
fizzArray2 challenge 1 78
isEverywhere  challenge 19 74
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now