Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Command Bars Save State Wrong?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Command Bars Save State Wrong?

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


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post Topic: Command Bars Save State Wrong?
    Posted: 23 July 2006 at 3:37am

Shouldnt:

void CXTPCommandBars::SaveBarState(LPCTSTR lpszProfileName, BOOL bOnlyCustomized /*= TRUE*/)
...
   if (dwCount > 16000 && bSaveToFile)
actually be...
   if (dwCount > 16000 || bSaveToFile)
I want to save to file but it wont ... because I havent got enough entries ... doesnt seem quite right.
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: 23 July 2006 at 10:47am

No, it shouldn't. 

SaveCommandbars method designed to save state to registry, so it first try to save in registry, if not possible save to file.
 
If you need save all state to file you need DoPropExchange method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
danpetitt View Drop Down
Senior Member
Senior Member


Joined: 17 July 2005
Location: United Kingdom
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote danpetitt Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2006 at 2:37pm
Ah okay, perhaps you could give me an example as I found the documentation quite sparse ... it appears to be just a documentation of classes and methods and not their usage (where and how to use them) ... I seem to be relying on the sample projects, so if something isnt in there then I probably wont know how to use them.
 
This is not a criticism, more an observation, I hope you understand Smile
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.