Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to change the default font of CommandBar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change the default font of CommandBar?

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


Joined: 02 April 2006
Location: China
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote shineryu Quote  Post ReplyReply Direct Link To This Post Topic: How to change the default font of CommandBar?
    Posted: 23 August 2008 at 10:25am
How to change the default font of CommandBar?
Back to Top
shineryu View Drop Down
Groupie
Groupie


Joined: 02 April 2006
Location: China
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote shineryu Quote  Post ReplyReply Direct Link To This Post 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:
Back to Top
shineryu View Drop Down
Groupie
Groupie


Joined: 02 April 2006
Location: China
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote shineryu Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
shineryu View Drop Down
Groupie
Groupie


Joined: 02 April 2006
Location: China
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote shineryu Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2008 at 11:45am

I solved it!

Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2008 at 3:38pm
Pleae write how to fix this problem
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.031 seconds.