Click here to Skip to main content
15,909,030 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: Change how the UI looks, like the new Netscape 6 Interface Pin
Michael Dunn19-Jan-01 14:46
sitebuilderMichael Dunn19-Jan-01 14:46 
GeneralReport Writer!! Pin
16-Jan-01 22:23
suss16-Jan-01 22:23 
GeneralMaster of Magic Pin
12-Jan-01 1:13
suss12-Jan-01 1:13 
GeneralDiscussion forum on the web - Please help me!!! Pin
11-Jan-01 19:50
suss11-Jan-01 19:50 
GeneralDB2 C++ Wrapper Classes Pin
11-Jan-01 1:06
suss11-Jan-01 1:06 
GeneralRe: DB2 C++ Wrapper Classes Pin
Matt Gullett6-Feb-01 11:59
Matt Gullett6-Feb-01 11:59 
Questionhow to change font in menus Pin
9-Jan-01 23:38
suss9-Jan-01 23:38 
AnswerRe: how to change font in menus Pin
Jason De Arte6-Feb-01 10:55
Jason De Arte6-Feb-01 10:55 
One word: Ownerdraw

In a nutshell, you cannot set a magic "font" property (unless maybe VB supports that sort of craziyness) you will need to set the MF_OWNERDRAW flag for each menu item that you want customized & then handle the resulting WM_MEASUREITEM and WM_DRAWITEM messages to actually draw the menu item yourself.

Before a menu is displayed windows sends WM_MEASUREITEM to the parent window to get the minimum dimensions for each item with the MF_OWNERDRAW flag set.

After querying for the size, windows will send a WM_DRAWITEM message (again, for each ownerdraw menu item) that you can use to draw the menu item with any one of your favorite GDI calls.

One little note, you may want to keep a map (or collection of some sort) to keep track of the menu item text, it tends to get forgotten when you mark a menu item as ownerdraw.

There are also some samples here on code project that you should check out to help you along.

Happy coding Smile | :)
GeneralATL Control Pin
uday8-Jan-01 23:23
uday8-Jan-01 23:23 
GeneralRe: ATL Control Pin
Amit Dey19-Jan-01 22:06
Amit Dey19-Jan-01 22:06 
GeneralRe: ATL Control Pin
uday19-Jan-01 23:52
uday19-Jan-01 23:52 
GeneralVisual Controls Pin
Marc Richarme3-Jan-01 4:17
Marc Richarme3-Jan-01 4:17 
GeneralBrowser Helper Object Code required Pin
2-Jan-01 3:12
suss2-Jan-01 3:12 
GeneralBrowser Helper Object Code required Pin
2-Jan-01 3:12
suss2-Jan-01 3:12 
GeneralRe: Browser Helper Object Code required Pin
7-Jan-01 11:09
suss7-Jan-01 11:09 
GeneralCDROM Name Pin
1-Jan-01 4:37
suss1-Jan-01 4:37 
GeneralRe: CDROM Name Pin
29-Jan-01 2:45
suss29-Jan-01 2:45 
GeneralThe system tray icon Pin
Ashman30-Dec-00 2:32
Ashman30-Dec-00 2:32 
GeneralRe: The system tray icon Pin
Michael Dunn30-Dec-00 8:53
sitebuilderMichael Dunn30-Dec-00 8:53 
Generaljpeg to bmp conversion and vice versa Pin
vishal shewale26-Dec-00 2:47
vishal shewale26-Dec-00 2:47 
GeneralRe: jpeg to bmp conversion and vice versa Pin
26-Dec-00 3:26
suss26-Dec-00 3:26 
GeneralRe: jpeg to bmp conversion and vice versa Pin
Chris Losinger29-Dec-00 6:03
professionalChris Losinger29-Dec-00 6:03 
Generalparam edit Pin
24-Dec-00 2:15
suss24-Dec-00 2:15 
Generalweb spider script wanted Pin
21-Dec-00 6:26
suss21-Dec-00 6:26 
QuestionHow does a good coder... code? Pin
20-Dec-00 12:08
suss20-Dec-00 12:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.