Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPContolEdit update problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPContolEdit update problem

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: CXTPContolEdit update problem
    Posted: 07 September 2005 at 10:47am

Hi, I have a CXTPControlEdit control in my toolbar which is created in my OnCreateControl() handler.  I originally set the 'xtpManualUpdate' flag for this control so that the update handler was never called, which worked as expected.  Later I decided that I did need the update handler to be called and removed this flag but the handler still was not called.  After scratching my head over this for quite a while I finally deleted the registry entires where this toolbar's settings were being saved and loaded from and this cured the problem!

Surely a setting like this, which the user can't change, should not be serialized to the registry when saving/restoring the toolbar state?  This is a purely programming issue and I should not have to make my users delete all their registry settings for the program just to make new changes work!   Can you please tell me how to fix this problem? Thanks.

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: 08 September 2005 at 3:56am

Right, sorry we missed this parameter in Compare method.

in CXTPControl::Compare will be added

 if (GetFlags() != pOther->GetFlags())
  return FALSE;

Now  I suggest you to change registry setting entry key:

SaveCommandBars(_T("CommandBars-ver2");

LoadCommandBars(_T("CommandBars-ver2");

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2005 at 5:19am
Thanks Oleg, that's fixed it! Cheers! :)
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.125 seconds.