Print Page | Close Window

How to change the default font of CommandBar?

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=11939
Printed Date: 14 September 2025 at 8:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change the default font of CommandBar?
Posted By: shineryu
Subject: How to change the default font of CommandBar?
Date Posted: 23 August 2008 at 10:25am
How to change the default font of CommandBar?



Replies:
Posted By: shineryu
Date Posted: 23 August 2008 at 10:53am
Ribbon Sample:
 
I added some code like this in CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
 LOGFONT lf;
 memset(&lf, 0, sizeof(LOGFONT));
 lf.lfHeight = 14;
 strcpy(lf.lfFaceName, "Tahoma");
 pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(&lf);
...
}
 
Some changed, some not change:


Posted By: shineryu
Date Posted: 23 August 2008 at 11:35am
Now, I can change the font of Ribbon Tab, Ribbon Title, and Status Bar.
But I still can't change the font of Ribbon Group.
 
Help me plz!


Posted By: shineryu
Date Posted: 23 August 2008 at 11:45am

I solved it!



Posted By: barobax
Date Posted: 23 August 2008 at 3:38pm
Pleae write how to fix this problem



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