I have a problem with the tm structure when invoking GetTextMetrics, the assembler always comes up with label not defined error. Is this not supported yet? or am I doing something wrong?
Mel:confused:
Posted on 2001-07-27 14:44:00 by Mel
Make sure you included gdi32.inc, gdi32.lib, and the right windows.inc from the masm32 package. The function and structure are defined so if you include them correctly you shouldn't have any problems.

Thomas
Posted on 2001-07-27 16:58:50 by Thomas
I've found the function in gdi32.inc & gdi32.lib:alright: I have includes for both of them, so that has at least narrowed it down to my code,
thanks Thomas
Posted on 2001-07-28 03:51:59 by Mel
I'm still having trouble, where in MASM32 is the actual structure definition? I can't find it:mad:
Posted on 2001-07-31 01:35:06 by Mel
TEXTMETRIC struct is defined in windows.inc (like all other structures)

Here is an excerpt:



TEXTMETRICA STRUCT
tmHeight DWORD ?
tmAscent DWORD ?
tmDescent DWORD ?
tmInternalLeading DWORD ?
tmExternalLeading DWORD ?
tmAveCharWidth DWORD ?
tmMaxCharWidth DWORD ?
tmWeight DWORD ?
tmOverhang DWORD ?
tmDigitizedAspectX DWORD ?
tmDigitizedAspectY DWORD ?
tmFirstChar BYTE ?
tmLastChar BYTE ?
tmDefaultChar BYTE ?
tmBreakChar BYTE ?
tmItalic BYTE ?
tmUnderlined BYTE ?
tmStruckOut BYTE ?
tmPitchAndFamily BYTE ?
tmCharSet BYTE ?
TEXTMETRICA ENDS

TEXTMETRIC equ <TEXTMETRICA>



japheth
Posted on 2001-07-31 04:43:26 by japheth
Thanks Japheth, I'm still finding my way around all the documentation, must have a rest from coding and have a good read of everything.
Posted on 2001-07-31 13:08:34 by Mel