Re: размер шрифта в static control
От: SchweinDeBurg Россия https://zarezky.spb.ru/
Дата: 27.10.04 11:40
Оценка: 2 (1)
Здравствуйте, Hippopotamus, Вы писали:

H>хотел уменьшить размер шрифта static-элемента диалога

H>не получилось

Из описания CreateFont():

nHeight
[in] Specifies the height, in logical units, of the font's character cell or character. The character height value (also known as the em height) is the character cell height value minus the internal-leading value. The font mapper interprets the value specified in nHeight in the following manner.


For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size.

This mapping occurs when the font is used for the first time.

For the MM_TEXT mapping mode, you can use the following formula to specify a height for a font with a specified point size:

nHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);


Все вышепроцитированное учитываете?
- Искренне ваш, Поросенок Пафнутий
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.