Z
zqget
Unregistered / Unconfirmed
GUEST, unregistred user!
void __fastcall TfrmPrev::SetLineDiff(TRichEdit *RichEdit,int LineSpace)
{
PARAFORMAT2 MyFormat;
ZeroMemory(&MyFormat, sizeof(MyFormat));
MyFormat.cbSize=sizeof(MyFormat);
MyFormat.dwMask=PFM_LINESPACING;
MyFormat.dyLineSpacing=300;
MyFormat.bLineSpacingRule=LineSpace;
SendMessage(RichEdit->Handle, EM_SETPARAFORMAT, 0, (LPARAM) &MyFormat);
}
该函数可以对richedit设置行距,当我的问题是如何对[blue]选中的段落[/blue]设置行距?,各位高手,请帮一下忙?
{
PARAFORMAT2 MyFormat;
ZeroMemory(&MyFormat, sizeof(MyFormat));
MyFormat.cbSize=sizeof(MyFormat);
MyFormat.dwMask=PFM_LINESPACING;
MyFormat.dyLineSpacing=300;
MyFormat.bLineSpacingRule=LineSpace;
SendMessage(RichEdit->Handle, EM_SETPARAFORMAT, 0, (LPARAM) &MyFormat);
}
该函数可以对richedit设置行距,当我的问题是如何对[blue]选中的段落[/blue]设置行距?,各位高手,请帮一下忙?