Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to change menu font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change menu font

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


Joined: 22 May 2008
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tataxin Quote  Post ReplyReply Direct Link To This Post Topic: How to change menu font
    Posted: 08 July 2008 at 10:47pm
I have a menu declared like this:

CXTPCommandBar* pMenuBar;
pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME);

Is there any way to change the font of this menu? For example, I want to change to bold, Arial, size 10 font?

Thank you in advance
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 4:46am
Hi,
 
Call pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(...);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
tataxin View Drop Down
Newbie
Newbie


Joined: 22 May 2008
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tataxin Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 5:23am
great!! it works!!
thank you very much, oleg, :)
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.063 seconds.