![]() |
How to correctly use LoadBarState( ) ? |
Post Reply
|
| Author | |
jeffcmj
Groupie
Joined: 28 October 2004 Status: Offline Points: 92 |
Post Options
Thanks(0)
Quote Reply
Topic: How to correctly use LoadBarState( ) ?Posted: 31 March 2005 at 3:57am |
|
Hi, I use LoadBarState(_T("test.ini")) and SaveBarState to load/save my app's command bar state. But I found that when the state is loaded, my custom control, which is derived from CXTPControlButton is gone. And I find if I use LoadBarState before I create the toobar, the toolbar will be doubled. Can anyone advise how to use this function correctly? Thanks
|
|
![]() |
|
jeffcmj
Groupie
Joined: 28 October 2004 Status: Offline Points: 92 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 April 2005 at 12:19pm |
|
I found the answer myself. My control did not add DECLARE_XTP_CONTROL to the header. After adding it, the control is correctly loaded and saved.
|
|
![]() |
|
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 |