![]() |
Command Bars Save State Wrong? |
Post Reply
|
| Author | |
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
danpetitt
Senior Member
Joined: 17 July 2005 Location: United Kingdom Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |