?
Solved

floating the toolbar

Posted on 1997-11-08
1
Medium Priority
?
422 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
wpinto earned 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

752 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