Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font Size w/ Ownerdraw.

Status
Not open for further replies.

bodhi

Programmer
Jan 3, 2002
67
GB
I am trying to Ownerdraw menu's with icons etc... and have been stuck at this for ages.
Having shunted it to one side for a while it's now crunch time and I need to see if this is doable.

Unless I'm missing the obvious there seems to be no way to retrieve the current menu font details...

I need to know the menu font used before the menu is displayed so that I can handle the MeasureItem event properly. How do I get this?

I've tried to get a canvas of the menu item, but that doesn't seem to be possible because menu items aren't really windows... I figured it would be one of the stock fonts, but despite the description of one of them (I forget which), it is not the menu font that can be specified by the user via the Control Panel (Appearance)

I also tried finding it in the registry... The users's current Appearance-scheme is available, but the stuff is all encoded into a binary thing that looks too difficult to decode without knowing how to begin with.

I'm going absolutely up the wall with this...any help would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top