Print Page | Close Window

How to correctly use LoadBarState( ) ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2056
Printed Date: 07 November 2025 at 2:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to correctly use LoadBarState( ) ?
Posted By: jeffcmj
Subject: How to correctly use LoadBarState( ) ?
Date 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


 




Replies:
Posted By: jeffcmj
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net