I am still working on my text editor, and now I want to make it run faster. So I thought I may somehow get currently visible text, and parse it as I want. So is there a way to get currently visible lines?

P.S. Or maybe there is another way to increase StyledTextCtrl's performance? Thanks.

有帮助吗?

解决方案

Use GetFirstVisibleLine() to determine the first visible line. Lines are numbered starting at zero.

Use LinesOnScreen() to determine how many lines are visible on the screen.

You can use GetLine(line) to get a string of an individual line.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top