Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag object not updating when scrolling source window with SendMessage

Status
Not open for further replies.

ed0

Programmer
Jul 30, 2003
4
US
Hi,
What I'm trying to do is get the form to scroll when i'm dragging any object near it's border.
I've done this by capturing the mouse position testing if it's near the border and using:

SendMessage(Hold->Handle,WM_VSCROLL,SB_LINEDOWN,0);
SendMessage(Hold->Handle,WM_VSCROLL,SB_ENDSCROLL,0);

This works quite well and scrolls smoothly

My problem arises when the user is dragging something and the form scrolls.
The window repaints properly and the mouse cursor stays in it's proper position
but the object being dragged ends up getting left behind.

So how do I get the handle of the drag object so I can move it?

Thanks for the help,
Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top