|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| WinNT
| Platform Notes
| Windows 95: int == 16 bits
|
|
|
GetCharWidth32
The
GetCharWidth32 function retrieves the widths, in logical coordinates, of consecutive
characters in a specified range from the current font. This function supersedes the
GetCharWidth function.
BOOL GetCharWidth32(
HDC hdc,
| // handle of device context
|
UINT iFirstChar,
| // first character in range to query
|
UINT iLastChar,
| // last character in range to query
|
LPINT lpBuffer
| // address of buffer for widths
|
);
|
|
Parameters
hdc
Identifies the device context.
iFirstChar
Specifies the first character in the group of consecutive characters.
iLastChar
Specifies the last character in the group of consecutive characters, which
must not precede the specified first character.
lpBuffer
Points to a buffer to receive the widths.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call
GetLastError.
Remarks
The range is inclusive; that is, the returned widths include the widths of the
characters specified by the
iFirstChar and
iLastChar parameters.
If a character does not exist in the current font, it is assigned the width of
the default character.
See Also
GetCharABCWidths,
GetCharABCWidthsFloat,
GetCharWidth,
GetCharWidthFloat
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database