ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
19 мая
226601 Топик полностью
Ксения (08.12.2010 12:49, просмотров: 106) ответил MegaJohn на Вопрос: Как в Borland Builder или MSVC определить сколько реально пикселов заняло выведенный немоноширинный текст в GUI ?
Функция API GetTextExtentPoint32() The GetTextExtentPoint32 function computes the width and height of the specified string of text. BOOL GetTextExtentPoint32( HDC hdc, // handle of device context LPCTSTR lpString, // address of text string int cbString, // number of characters in string LPSIZE lpSize // address of structure for string size );