Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Dynamic adding menuentries
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic adding menuentries

 Post Reply Post Reply
Author
Message
nobs View Drop Down
Groupie
Groupie
Avatar

Joined: 12 September 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nobs Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic adding menuentries
    Posted: 07 March 2007 at 9:36am
Hi

I have a problem with adding a menuentry during runtime

I'm able to add do it, but!!!
the problem is that with SaveCommandBars and LoadCommandbars
the added entry is saved in the config

so the next time I start the application, a new copy of the menuentry is added!

The documentation says that I should set the m_btemporary flag in the CXTPControl, but how can I achieve this?     the member is protected and there is no method to access it (Except "IsTemporary")

A solution would be to simple never use "LoadcommandBars" but that is no feasible because I need this feature.

Additional Information:
using Toolkitpro v10.3.1

norbert




Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 07 March 2007 at 1:59pm
Hi,
When you call pControls->Add  set bTemporary parameter as TRUE
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
nobs View Drop Down
Groupie
Groupie
Avatar

Joined: 12 September 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nobs Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2007 at 4:18am
Thanks for the quick answer, that solved the problem!


A little advice:
This is information would be nice in the documentation

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.140 seconds.