table of contents
other versions
- wheezy 1.4.1-4
GdiGetCharDimensions(3w) | Wine API | GdiGetCharDimensions(3w) |
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¶
Declared in "wingdi.h". Implemented in "dlls/gdi32/font.c". Debug channel "font".Oct 2012 | Wine API |