Print Page | Close Window

about SaveCommanBars()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=14671
Printed Date: 28 April 2024 at 4:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: about SaveCommanBars()
Posted By: zaozao
Subject: about SaveCommanBars()
Date Posted: 02 July 2009 at 8:19am
Hi.
 
I am making now the Ribbon Application.
And I wrote "LoadCommandBars("CommandBars") ;"in my CMainFrame::OnCreate(), 
and "SaveCommandBars("CommandBars") ;" in my CMainFrame::OnClose().
But "CommandBars-Controls" was not created in the registry.
So,  information of Customization is lost.
 
I tried to add "SaveCommandBars("CommandBars") ;"  to "Ribbon Control Sample".
But "CommandBars-Controls" was not created.
 
How should I do to create "CommandBars-Controls" as same as "Ribbon MDI Sample"?
 
Please teach me.
 
Thanks.
 
 
 



Replies:
Posted By: Oleg
Date Posted: 06 July 2009 at 1:17am
Hi,
Ribbon saves only information about Quick Access controls. Check if you have line
pRibbonBar->GetQuickAccessControls()->CreateOriginalControls();


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


Posted By: zaozao
Date Posted: 07 July 2009 at 2:47am
Thank you, oleg.
 
I have already written the line, but Ribbon doesn't save the information about Quick Access controls.
 
But I tried http://forum.codejock.com/forum_posts.asp?TID=9813&KW=XTP%5FID%5FCUSTOM - http://forum.codejock.com/forum_posts.asp?TID=9813&KW=XTP%5FID%5FCUSTOM ,
I did it!
 
Thanks. 



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