Solved

Dynamic Toolbar

Posted on 1997-07-24
3
235 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 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