|
|
Title | Get the index of the first line visible in a RichTextBox |
Keywords | RichTextBox, scroll, line |
Categories | Controls |
|
|
Send the control the EM_GETFIRSTVISIBLELINE message. SendMessgae returns the index of the line.
|
|
Private Sub Command1_Click()
Label1.Caption = Format$(SendMessage(RichTextBox1.hwnd, _
EM_GETFIRSTVISIBLELINE, 0, 0))
End Sub
|
|
|
|
|
|