Simple Drag and Drop Question
Posted on 1997-10-08
I am attempting to perform simple dragging and dropping in a non-ole application (in fact it is a simple dialog based app).
I have created a cwnd derived child window, made it a drop target (using coledroptarget), and inserted it into my dialog box. in my OnLButtonDown message handler inside my dialog box class i create a data source (coledatasource) and immediately call DoDragDrop()- using all default arguments. It was my understanding that this routine would not return until the mouse button is released to end the drag/drop operation. Instead, what i see is that DoDragDrop returns immediately with a return value of 0.
Is this implementation of drag/drop completely off base? The mfc knowledge base article "drag and drop: implementing a drop source" basically tells me that what i did was correct. Whats going on?
thanks, in advance.