Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - can't save the action of customize button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can't save the action of customize button

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


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: can't save the action of customize button
    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.




Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2008 at 4:47am
Hi,
 
Do you have LoadCommandBars call ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 12 August 2008 at 8:13pm
sure, I add
    LoadCommandBars(_T("CommandBars"));
in the CMainFrame::OnCreate
But it doesn't work.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 1:18am
Hi,
 
Attach project to test it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.064 seconds.