Vista, Tree Controls, WM_VSCROLL

Here's a little compatibility note on Vista that might save someone some time.

In XP, you could send a tree control a WM_VSCROLL message and it would scroll the tree to the position in the message.  However, since the days of Windows 95 Microsoft has recommended using the GetScrollInfo function instead of using what's in the message, since the value in the message is limited to 16 bits.

With Vista, the tree control no longer uses the value in the message.

The fix is simple:  Call SetScrollInfo before sending the WM_VSCROLL message to a tree control.