
Get last visible line of RichTextBox
Hi Sau,
I think you will have to use GetCharIndexFromPosition passing it the
cordinates of the bottom of the rtf box or there abouts, then call
GetLineFromCharIndex. Jsut make sure GetCharIndexFromPosition returns an
actual char index, not 0 (or -1 ?)
Quote:
> How do I get the line number of the last visible line (not
> the last line of the text, but the last line in the
> visible area) of a RichTextBox? Thanks.