![]() |
CXTPContolEdit update problem |
Post Reply ![]() |
Author | |
brianh ![]() Groupie ![]() Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() 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! |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Right, sorry we missed this parameter in Compare method. in CXTPControl::Compare will be added if (GetFlags() != pOther->GetFlags()) Now I suggest you to change registry setting entry key: SaveCommandBars(_T("CommandBars-ver2"); LoadCommandBars(_T("CommandBars-ver2");
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
brianh ![]() Groupie ![]() Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
![]() ![]() ![]() ![]() ![]() |
Thanks Oleg, that's fixed it! Cheers! :)
|
|
![]() |
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 |