Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Changing Font in Ribbon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing Font in Ribbon

 Post Reply Post Reply
Author
Message
MarcoW View Drop Down
Newbie
Newbie


Joined: 24 May 2019
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarcoW Quote  Post ReplyReply Direct Link To This Post Topic: Changing Font in Ribbon
    Posted: 05 December 2019 at 5:23am
Hi,

how can i change the font / font size in the ribbon?
When using

m_pRibbonBar->SetFont(font);

nothing happens.

When using

pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(&theApp.m_lfStartprogramFont);


the font changes but then the heigth of the ribbn doesnt change, so that icons get scaled but are to big for the ribbon.

Use of

m_pRibbonBar->SetFontHeight(16);

doesnt work, when pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect gets called.


So my question is, how can i set the font for an ribbon with the possibility to change the font size and ribbon and icons get scaled correctly (like in the ribbon sample)?



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.188 seconds.