如题,RichTextBox中每行的间距设大些。
以前真没注意过,不知怎么解决,哪位帮帮忙?
解决方案 »
- vb6里面的出错时跳转语句标签要在很多个过程中使用,能不能整个程序只写一次这个标签语句?还是说必须每个过程里都写
- 代码创建的控件数组如何获取事件? 在线等
- 关于journalrecord hook的问题
- VB 6.0 能否通过进程pid 获取某一进程的cpu占用率。
- 如何对PDF文件进行版面分析?
- 给点儿思路或建议,来者有分,不够再加...
- 在哪里能买到正版的ActiveReport软件?
- 为什么vb程序打包后发福?
- 急!密码管理问题
- 在listview中如何让指定的记录获得焦点(程序指定),就是说让系统认为当前选择了该记录。
- 郁闷了我很久的问题,多指教!
- 怎样在水晶报表9.0的设计器中编写代码
Const PFM_LINESPACING = &H100
Const MAX_TAB_STOPS = 32
Const EM_SETPARAFORMAT = WM_USER + 71Private Type PARAFORMAT2
cbSize As Integer
wPad1 As Integer
dwMask As Long
wNumbering As Integer
wReserved As Integer
dxStartIndent As Long
dxRightIndent As Long
dxOffset As Long
wAlignment As Integer
cTabCount As Integer
lTabStops(0 To MAX_TAB_STOPS - 1) As Long
dySpaceBefore As Long ' /* Vertical spacing before para */
dySpaceAfter As Long ' /* Vertical spacing after para */
dyLineSpacing As Long ' /* Line spacing depending on Rule */
sStyle As Integer ' /* Style handle
bLineSpacingRule As Byte ' /* Rule for line spacing (see tom.doc) */
bCRC As Byte ' /* Reserved for CRC for rapid searching *
wShadingWeight As Integer ' /* Shading in hundredths of a per cent
wShadingStyle As Integer ' /* Nibble 0: style, 1: cfpat, 2: cbpat
wNumberingStart As Integer ' /* Starting value for numbering
wNumberingStyle As Integer ' /* Alignment, roman/arabic, (), ), .,
wNumberingTab As Integer ' /* Space bet 1st indent and 1st-line
wBorderSpace As Integer ' /* Space between border and text
wBorderWidth As Integer ' /* Border pen width (twips)
wBorders As Integer ' /* Byte 0: bits specify which borders
End TypePrivate Sub Command1_Click()
Dim x As PARAFORMAT2
RichTextBox1.SelStart = 0
RichTextBox1.SelLength = Len(RichTextBox1.Text)
x.cbSize = Len(x)
x.dwMask = PFM_LINESPACING
x.bLineSpacingRule = 5
x.dyLineSpacing = 60
Call SendMessage(RichTextBox1.hwnd, EM_SETPARAFORMAT, 0, x)
End SubPrivate Sub Form_Load()
RichTextBox1.Text = RichTextBox1.Text + vbCrLf
RichTextBox1.Text = RichTextBox1.Text + "AAAAAAAAAAAAAAAA"
RichTextBox1.Text = RichTextBox1.Text + vbCrLf
RichTextBox1.Text = RichTextBox1.Text + "BBBBBBBBBBBBBBBBBb"
RichTextBox1.Text = RichTextBox1.Text + vbCrLf
RichTextBox1.Text = RichTextBox1.Text + "CCCCCCCCCCCCCCCCCCcc"
End Sub
谢谢各位