麻烦指教下
计算RichEdit的文本总高度
通过Canvas->TextHeight得到了行文本高度,不知道行间距怎么获得?麻烦大家指教一下
[解决办法]
PARAFORMAT2 pf2;
ZeroMemory(&pf2, sizeof(pf2));
pf2.cbSize = sizeof(pf2);
SendMessage(RichEdit1->Handle, EM_GETPARAFORMAT, 0, (LPARAM)&pf2);
// 行间距
Caption = pf2.bLineSpacingRule;