Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
GETEXTENDEDTEXTMETRICS
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define GETEXTENDEDTEXTMETRICS 256 
short Control(lpDevice, GETEXTENDEDTEXTMETRICS,
                  lpInData, lpOutData)
LPPDEVICE lpDevice;
LPEXTTEXTDATA lpInData;
LPEXTTEXTMETRIC lpOutData;
 
The GETEXTENDEDTEXTMETRICS escape fills the buffer pointed to by the
lpOutData parameter with the extended text metrics for the currently
selected font.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   A long pointer to a PDEVICE structure, which is the destination
           device bitmap.
 
lpInData   Points to a EXTTEXTDATA structure containing information
 
lpOutData  Points to a EXTTEXTMETRIC structure.
 
Return Value
 
The return value is the number of bytes copied to the buffer pointed to by
the lpOutData parameter. This value will never exceed the size specified by
the etmSize member in the EXTTEXTMETRIC structure. Otherwise, the return
value is zero if the escape fails or is not implemented.
 
Comments
 
The values returned in many of the fields of the EXTTEXTMETRIC structure are
affected by whether relative character widths are enabled or disabled.
 
See Also
 
ENABLERELATIVEWIDTHS, EXTTEXTDATA, EXTTEXTMETRIC, PDEVICE
 
 
                                      ♦