I'm writing a log-file viewer which uses ANSI_FIXED_FONT. I use ExtTextOut to display the data, declaring a %null to "the optional array of values that indicate the distance between origins of adjacent character cells". For some mouse-related function I need to know that "distance" and use:
I get font.lfWidth - On my system this value is greater by 1 with respect to the distance ExtTextOut uses. I tried GetCharWidth32, but it doesn't work. I also tried GetTextExtentPoint32 on a single character - it works, but I find it a bit too complicated. Is there a simple and reliable way to get this value?
------------------
Code:
GetObject GetStockObject( %ANSI_FIXED_FONT ), SIZEOF( font ), font
------------------
Comment