Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - New Toolbar layout question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New Toolbar layout question

 Post Reply Post Reply
Author
Message
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: New Toolbar layout question
    Posted: 30 October 2006 at 1:50am
Hi,
In my application I let the user save and load toolbars layout.
The user can save a layout when he wants, and load the exact layout that he saved before.
I noticed that there is a problem when the user creates a new toolbar (from the customize toolbar dialog):
For example if a layout (named "Layout1") contains 2 toolbars (TB1 and TB2) and the user creates a new toolbar ("TB3"), and trying to load "Layout1", the new toolbar will be shown (he will have 3 toolbars instead of only 2).
 
How can I overcome this problem ?
 
Yoav.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2006 at 5:17am

Hello,

you can llop toolbars and delete all not buildin toolbars.
 
if (!pToolbar->IsBuiltIn()) ...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2006 at 6:54am
Hi,
Is there a way to solve this problem within the layout scope ?
Because I have several layouts in my application and I want that if the user saved a layout when a "buildin" toolbar was shown, he will see this toolbar when loading this layout.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.