My IDE shows the pair of () {} [] at the caret: for example, if the character at the caret is (, shows ) with different background. For example, if I press Caret Down, when the caret is on the last visible line, scrolls 1 line with ScrollToPosition. This calls OnDraw, what repaint the whole visible area, but CScrollView uses only the last line form this: on the other part of the window, scrolls the original content. So, the caret moved, but the highlighting of the pair of the bracket remains: will be a lot of highlighted characters.