Treeview Drag 'n' Drop 
Author Message
 Treeview Drag 'n' Drop

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



Mon, 21 Jan 2002 03:00:00 GMT  
 Treeview Drag 'n' Drop
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




Mon, 21 Jan 2002 03:00:00 GMT  
 Treeview Drag 'n' Drop
That's great - thanks Simon

Kind regards,

Lucy



Mon, 21 Jan 2002 03:00:00 GMT  
 Treeview Drag 'n' Drop
This link will tell you exactly how to do it.

http://support.microsoft.com/support/kb/articles/q177/7/43.asp

-Erick Jensen

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




Mon, 21 Jan 2002 03:00:00 GMT  
 Treeview Drag 'n' Drop
That's excellent - thanks both of you,  it works well!

Kind regards,

Lucy



Tue, 22 Jan 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Treeview Drag 'n' Drop

2. TreeView Drag n Drop don't allow dropping a parent into a child

3. ActiveX TreeView Drag 'n Drop

4. HELP : Treeview and drag'n drop problem.

5. VB4: Drag'n Drop with TreeView

6. ActiveX TreeView Drag 'n Drop

7. Drag'n'Drop

8. Drag'n'drop

9. drag'n'drop with listview...

10. Drag'n'Drop project

11. Need Chart controls with cool Drag'n'Drop

12. Drag'n'drop from File Manager

 

 
Powered by phpBB® Forum Software