Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to correctly use LoadBarState( ) ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to correctly use LoadBarState( ) ?

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


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post 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


 

Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post 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.
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.051 seconds.