Painting in a ScrollableControl class
I'm tasked with creating a "newspaper-style" list control that can display a hierarchichal structure. Due to the large number of list items, I've been advised to paint it myself, and combining what little I know already with the double-buffering control styles, it looks pretty good. Now I need to scroll it, and can make the standard scrollbars in the UserControl derivative visible when needed. I've even overridden the WndProc method to handle WM_HSCROLL events. The problem is I need to repaint the parts just scrolling into view. Is there a way to do that without dipping into the Win32 API? I have found the AutoScrollPosition property does track the upper-left coordinates of the DisplayRectangle - how do I paint the other parts? Update() doesn't seem to do the trick.
Thanks for any help.
Jim Stanley
Media Services, Inc.

