![]() |
How to change the default font of CommandBar? |
Post Reply
|
| Author | |
shineryu
Groupie
Joined: 02 April 2006 Location: China Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Topic: How to change the default font of CommandBar?Posted: 23 August 2008 at 10:25am |
|
How to change the default font of CommandBar?
|
|
![]() |
|
shineryu
Groupie
Joined: 02 April 2006 Location: China Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
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:
![]() |
|
![]() |
|
shineryu
Groupie
Joined: 02 April 2006 Location: China Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
shineryu
Groupie
Joined: 02 April 2006 Location: China Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 August 2008 at 11:45am |
|
I solved it! |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 August 2008 at 3:38pm |
|
Pleae write how to fix this problem
|
|
![]() |
|
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 |