Print Page | Close Window

can't save the action of customize button

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=11792
Printed Date: 24 June 2025 at 7:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: can't save the action of customize button
Posted By: yanlv
Subject: can't save the action of customize button
Date Posted: 12 August 2008 at 3:16am
according to
http://www.codejock.com/support/articles/mfc/commandbars/cb_2.asp
when I add

 void CMainFrame::OnClose()

 {

     // Save the current state for toolbars and menus.

     SaveCommandBars(_T("CommandBars"));

     CMDIFrameWnd::OnClose();

 }

but toolbar settings and changes using "Customize" are not stored. i.e., when the application opens agains, the toolbar remains the default one.
Any idea?
Thanks.
By the way, I use the static library.







Replies:
Posted By: Oleg
Date Posted: 12 August 2008 at 4:47am
Hi,
 
Do you have LoadCommandBars call ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: yanlv
Date Posted: 12 August 2008 at 8:13pm
sure, I add
    LoadCommandBars(_T("CommandBars"));
in the CMainFrame::OnCreate
But it doesn't work.


Posted By: Oleg
Date Posted: 13 August 2008 at 1:18am
Hi,
 
Attach project to test it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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