API自动伸缩的编辑框

易语言 2020-09-01 19:44:42

API自动伸缩的编辑框

hDC = CreateCompatibleDC (0)
hFont = CreateFont (-MulDiv (FONT.字体大小, GetDeviceCaps (hDC, #LOGPIXELSY), 72), 0, FONT.角度, 0, 选择 (FONT.加粗, #FW_BOLD, #FW_DONTCARE), FONT.倾斜, FONT.下划线, FONT.删除线, 4, 0, 0, 0, 0, FONT.字体名称)
DeleteDC (hDC)