I have an MDI application implemented using third-party controls. I have implemented the basic OLE drag and drop. I am stuck trying to get a tree node to expand when I hover over it. My code implements the OnDragOver, OnDrop, OnDragLeave, OnDragEnter, OnBeginDrag. The sample code uses the old style drag and drop. When I add OnMouseMove and OnTimer methods, they never get control. I have debug tracing in the various methods. I have looked at Jeff Prosise's book but have found nothing that seems similar to my situation. I have tried moving the code from OnMouseMove to OnDragOver. Then the OnTimer method does not get invoked. I have tried calling SetFocus, but that does not help either. I am a MFC novice. Can anyone point me in the right direction?
W
wfalby
@wfalby
Posts
-
Enhanced drag and drop -
Drag and Drop tree view itemsI noticed, just today, that IE has an interesting feature when organizing your favourites list. What I noticed is a line appears under an entry when you drag over it. It appears that the line is indicating where the item will be dropped. What this means to me is that a folder can be repositioned within the list rather than becoming a child of the target. I would like to do the same thing but have no idea how. I see this same type of thing in other products, Netscape and DemoShield. Can anyone help me? Try it yourself if you have not experienced this yet!