Group: Font and Text - Library: gdi32
BOOL GetTextExtentPoint32(
HDC hdc, // handle to DC
LPCTSTR lpString, // text string
int cbString, // characters in string
LPSIZE lpSize // string size
); DECLARE INTEGER GetTextExtentPoint32 IN gdi32;
INTEGER hdc,;
STRING lpString,;
INTEGER cbString,;
STRING @ lpSize
hdc [in] Handle to the device context.
lpString [in] Pointer to a buffer that specifies the text string.
cbString [in] Specifies the length of the lpString buffer. For the ANSI function it is a BYTE count and for the Unicode function it is a WORD count.
lpSize [out] Pointer to a SIZE structure that receives the dimensions of the string, in logical units.
If the function succeeds, the return value is nonzero.
The string does not need to be zero-terminated, because the cbString parameter specifies the length of the string.
See also: GdipMeasureString, TXTWIDTH(), WFONT( )
Home