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.
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.