Solved

How to set a font to a CMenu ?

Posted on 2008-10-09
3
1,269 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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now