GdiGetCharDimensions.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

GdiGetCharDimensions (GDI32.@)

SYNOPSIS

LONG GdiGetCharDimensions
 (
  HDC           hdc,
  LPTEXTMETRICW lptm,
  LONG*         height
 )

DESCRIPTION

Gets the average width of the characters in the English alphabet.

PARAMS

hdc [In] Handle to the device context to measure on.

lptm [Out] Pointer to memory to store the text metrics into.

height [Out] On exit, the maximum height of characters in the English alphabet.

RETURNS

The average width of characters in the English alphabet.

NOTES

This function is used by the dialog manager to get the size of a dialog unit. It should also be used by other pieces of code that need to know the size of a dialog unit in logical units without having access to the window handle of the dialog. Windows caches the font metrics from this function, but we don't and there doesn't appear to be an immediate advantage to do so.

SEE ALSO

GetTextExtentPointW, GetTextMetricsW, MapDialogRect.

IMPLEMENTATION

Defined in "wingdi.h".

Implemented in "dlls/gdi32/font.c".

Debug channel "font".