Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to set a font to a CMenu ?

Posted on 2008-10-09
3
Medium Priority
?
1,328 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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 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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

916 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