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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to implement drag n drop in visual c++

Status
Not open for further replies.

timbrown24

Programmer
Jul 12, 2002
2
US
i am looking for any help at all. basically this is what i need. i have created sort of an add/remove dialog in vc++ with a list box. what i need to be able to do is simply drag a line and move it up or down with drag n drop. does anyone have any idea's on where to start or know where i can find some sample code. thanks in advance.
 
you might try mouse capture functions. Check out:

You could make a thin window where your line is and capture the mouse there.

If you are using MFC, CWnd-derived classes have a SetCapture member function. If you are trying to make a separator MFC has a class called CSplitterWnd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top