Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] TreeView Scrolling

Started by Greg K Nov 21, 2004 at 10:40 AM 0 replies 400+ views
Original Post
Greg K
Greg K
How do I capture a scroll event on a tree view control? There is no event handler. I watched it in spy++ and I saw it sending the scroll message but I don't know how to grab messages except with handlers! How do I do this? -Greg
Greg K
Greg K
I think I have made some headway. I can now override the WndProc method but I don't know how to override it for just one control. Right now I have
protected override void WndProc(ref Message m)
{
}
but I only want to override the wndproc for one of my treeviews and I don't really want to derive a class from TreeView just for this.
Is there maybe a different way to get the VScroll message?
-Greg

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.