[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to Set Width of Control Bar/Toolbar in MFC?

Posted on 2004-11-29
3
Medium Priority
?
392 Views
Last Modified: 2013-11-20
Hi, I have a MDI app that has floating dockable control bars which contain dialogs as views.  The problem is that every time I start up the app the control bars (views) are set to a certain width not specified by me.  Are there any functions I can use to set the width of a toolbar/control bar (maybe SetBarStyle?) or start up the control bar (view) based on the last setting (last time the app exited)?

Thanks for any help.
0
Comment
Question by:yuen_wc
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 12698908
Check out MFC sample CTRLBARS. It keeps last control bars state in the Registry and restores it when the program starts.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

872 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