Solved

How to set a font to a CMenu ?

Posted on 2008-10-09
3
1,282 Views
Last Modified: 2013-11-20
Hi,
I have a dialog box with a menu attached to it. How do I set a font to the menu?

Thanks
0
Comment
Question by:UdiRaz
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 22683530
Not possible with regular options, all menus uses the default windows appeareance settings. You will need to do with owner-draw functions. This is a complex task.
Some related articles:
http://www.codeproject.com/KB/menus/CMenuEx.aspx
http://www.codeproject.com/KB/menus/menuch.aspx
http://www.codeguru.com/Cpp/controls/menu/article.php/c3721


0
 
LVL 5

Expert Comment

by:isprabu
ID: 22685253
Jaime is right. You need to implement owner drawn menu to achive what you want. There is also an article in MSDN which you can refer to. This one has many different examples and you can look at the section titled "Setting Fonts for Menu-Item Text Strings" in this page.
http://msdn.microsoft.com/en-us/library/ms647558(VS.85).aspx#_win32_Creating_Owner_Drawn_Menu_Items
Hope this helps!
0
 

Author Closing Comment

by:UdiRaz
ID: 31504886
thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
matchUp  challenge 9 105
computer science syllabus 3 81
mapBully challenge 6 127
Unable to start eclipse ? 17 141
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question