|
发表于 2007-12-14 21:13:00
|
显示全部楼层
Re:如何计算字符串的输出宽度和高度?
看这个你就明白了吧?
BOOL wglUseFontBitmaps(
HDC hdc, // device context whose font will be used
DWORD first, // glyph that is the first of a run of glyphs to
// be turned into bitmap display lists
DWORD count, // number of glyphs to turn into bitmap display
// lists
DWORD listBase // specifies starting display list
);
int DrawText(
HDC hDC, // handle to device context
LPCTSTR lpString, // pointer to string to draw
int nCount, // string length, in characters
LPRECT lpRect, // pointer to struct with formatting dimensions
UINT uFormat // text-drawing flags
);
|
|