Link to home
Start Free TrialLog in
Avatar of winmeister
winmeisterFlag for Italy

asked on

Dynamic Toolbar


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?
ASKER CERTIFIED SOLUTION
Avatar of jaba
jaba

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of winmeister

ASKER

Mmmm, maybe. But it doesn't work on my side.
Avatar of paulnorth
paulnorth

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.