Yes, your are correct that a message would enable you to do this. The
message you want is WM_VSCROLL, qualified by the distance and direction to
move (line or page, up or down).
SendMessage TreeView1.hWnd, WM_VSCROLL, SB_LINEDOWN, 0
The declare and constants are available in the API viewer
--
Simon Waters
Director, Technical Services
Looking Glass Solutions Limited
Temple House, Regatta Place
Marlow Road, Bourne End
Bucks SL8 5TD England
Tel: +44 (0)1628 530015
Fax: +44 (0)1628 530120
Quote:
> I have a treeview control, with a certain (large) number of nodes which
> automatically produces a vertical scroll bar. I have implemented drag and
> drop, but I would like to scroll the treeview up or down while dragging,
in
> order to be able to drag a node to one not already visible. Can anyone
tell
> me how I would do this? Would a SendMessage mousedown api call do this?
> Many thanks in advance,
> Lucy Aldridge