Print Page | Close Window

Command Bars Save State Wrong?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4642
Printed Date: 10 November 2025 at 8:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command Bars Save State Wrong?
Posted By: danpetitt
Subject: Command Bars Save State Wrong?
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: danpetitt
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net