Solved

Dynamic Toolbar

Posted on 1997-07-24
3
225 Views
Last Modified: 2013-11-20

In my MDI Doc/View application, I need to replace at runtime the mainframe
toolbar in order to reflect the active child window.

How can I do?
0
Comment
Question by:winmeister
3 Comments
 
LVL 3

Accepted Solution

by:
jaba earned 50 total points
ID: 1302790
When you registring CMultiDocTemplateit have parameter - resource ID. All resources for this doc/view must have this ID ( menu , toolbar etc.) MFC load it automatic
0
 
LVL 1

Author Comment

by:winmeister
ID: 1302791
Mmmm, maybe. But it doesn't work on my side.
0
 

Expert Comment

by:paulnorth
ID: 1302792
I have the same problem.  Specification of the resource ID when registering the template ONLY affects the menu, NOT the toolbar.
You must do a LoadToolBar in CMainFrame.  However, I am experiencing a problem with this.  If the new toolbar is longer than the original you will not see the buttons that extend beyond it until the Contral bar that contains it is touched or the mainframe is resized.  The answer wasn't worth 5 points, it's wrong.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 67
Strange date stored 22 119
bigDiff challenge 17 105
Trying to run powershell  in a batch file. How do I do this? 8 89
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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