"1. I can handle clicks on scroll bars with VK_VSCROLL, handle page up /page down keys .... Is there a way to detect scrolling without coding a method for each message ?" Override OnHScroll and OnVScroll, these methods are called whenever horizontal or vertical scrolling happens. "2. How can I calculate the number of text lines being deisplayed ? Is there an equivalent for GetFirstVisibleLine() to find the last visible line ? If not, does someone know a method to achieve this ?" I think you have to use GetFirstVisibleLine and then start adding line heights until you get to the window size and declare that your "last visisble line" Hope this helps, Bill