Print Page | Close Window

How to change menu font

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11353
Printed Date: 01 March 2025 at 1:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change menu font
Posted By: tataxin
Subject: How to change menu font
Date 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



Replies:
Posted By: Oleg
Date Posted: 09 July 2008 at 4:46am
Hi,
 
Call pCommandBars->GetPaintManager()->SetCommandBarsFontIndirect(...);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tataxin
Date Posted: 09 July 2008 at 5:23am
great!! it works!!
thank you very much, oleg, :)



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