tags:

views:

451

answers:

1

Is it possible to retrieve the size of the font used in a menu via the Win32 API? I have found the GetTextMetrics() call, but cannot find a way to specify it getting the font used in a menu. Any suggestions?

+2  A: 

It looks like you can use this call

SystemParametersInfo(SPI_GETNONCLIENTMETRICS)

to get various system parameters. The resulting structure contains a LOGFONT item for the menu font and you should be able to determine the fontsize from that.

jdigital