According to documentation, 165 is about 0.115 inches or 3 mm. (Not all monitors show exactly this height). I think that this height represents the default interval between lines of current font.
Do you need the height in pixels?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
when placing the cursor in the cricheditctrl, I am able to get char index charfrompos and am able to get line number linefromchar.
I know the font size from GetDefaultCharFormat() which gives CHARFORMAT yHeight value as 165.
Now how to get exact font height from font size and get the line height from font height?
According to documentation, 165 is about 0.115 inches or 3 mm. (Not all monitors show exactly this height). I think that this height represents the default interval between lines of current font.
Do you need the height in pixels?