![]() |
can't save the action of customize button |
Post Reply
|
| Author | |
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: can't save the action of customize buttonPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 August 2008 at 4:47am |
|
Hi,
Do you have LoadCommandBars call ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 August 2008 at 8:13pm |
|
sure, I add
LoadCommandBars(_T("CommandBars")); in the CMainFrame::OnCreate But it doesn't work. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2008 at 1:18am |
|
Hi,
Attach project to test it.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |