1. treeview drag ad drop

------=_NextPart_000_0007_01C009E0.2DECECC0
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

how does drag and drop function
work in treeview?
In sample it doesn't work.
what's with MDI i send you Matt? Is it some
help?
I am switching to Win32Lib now, I'll
have to reWrite my editor, but it will be worth
it.I'll have some troubles because GetWindowLong(DATA)
is already taken in Win32Lib.
There's no sense in not using it and writing
my own library. IT'S NONSENSE!

------=_NextPart_000_0007_01C009E0.2DECECC0
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>how does drag and drop =
function</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>work in treeview?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>In sample it doesn't =
work.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>what's with MDI i send you Matt? Is =
it=20
some</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>help?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>I am switching to Win32Lib now, =
I'll</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>have to reWrite my editor, but it =
will be=20
worth</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>it.I'll have some troubles because=20
GetWindowLong</FONT><FONT face=3DVerdana size=3D2>(DATA)</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>is already taken in =
Win32Lib.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>There's no sense in not using it and=20
writing</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>my own library. IT'S=20

------=_NextPart_000_0007_01C009E0.2DECECC0--

new topic     » topic index » view message » categorize

2. Re: treeview drag ad drop

©koda wrote

>how does drag and drop function
>work in treeview?
>In sample it doesn't work.

I know that you're not switching to win32lib, but the drag and drop does
work for me (and for others, as far as I know).  What it doesn't do is
change the mouse cursor when this happens (also, the demo only allows you to
drag from a listview).  To give you a brief description of how I do it:

An LVN_BEGINDRAG notification is sent to the parent window through a
WM_NOTIFY message.  I use this to store the selection in sequence dragData,
in this format:

dragData = { id, { selection1, selection2, ... } }

Then, in SubProc, when the left mouse button is released (WM_LBUTTONUP), I
check to see if there is data that's been stored.  If so, I call the
onDragAndDrop proc for the control and clear dragData.  If there is no proc
for that control, I simply clear dragData.

To do the same, allowing a treeview to be the source, you'd need to check
for TVN_BEGINDRAG notifications, and do the same thing.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: treeview drag ad drop

Right. i checked it just for the treeview.

>I know that you're not switching to win32lib, but the drag and drop does
>work for me (and for others, as far as I know).

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu