![]() |
can't save the action of customize button |
Post Reply ![]() |
Author | |
yanlv ![]() Groupie ![]() Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Do you have LoadCommandBars call ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
yanlv ![]() Groupie ![]() Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
sure, I add
LoadCommandBars(_T("CommandBars")); in the CMainFrame::OnCreate But it doesn't work. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |