[MFC] OLE Drag & Drop and Drag image
-
Hi, I'm implementing drag & drop through OLE. I actually have that part working, but I also want (or actually need) to show a drag image during the actual drag. My idea was to use CImageList's functionality, so when the drag begins, I call BeginDrag and DragEnter, during GiveFeedback I keep calling DragMove, with the current cursor position, and when the drag ends, I call DragLeave and EndDrag. These functions all work, that is, they don't return error codes or anything. But still the image doesn't show. I don't really know what I would be doing wrong, or what I'm missing. Is there perhaps another way to show a drag image during an OLE drag. Hope someone can help me out here, thanks.
-
Hi, I'm implementing drag & drop through OLE. I actually have that part working, but I also want (or actually need) to show a drag image during the actual drag. My idea was to use CImageList's functionality, so when the drag begins, I call BeginDrag and DragEnter, during GiveFeedback I keep calling DragMove, with the current cursor position, and when the drag ends, I call DragLeave and EndDrag. These functions all work, that is, they don't return error codes or anything. But still the image doesn't show. I don't really know what I would be doing wrong, or what I'm missing. Is there perhaps another way to show a drag image during an OLE drag. Hope someone can help me out here, thanks.
The article "Implementing Reusable Drag & Drop Classes" By Leon Finker in section MFC / C++ >> Shell Programming >> General, should provide you with enough information. Good Luck! INTP
-
The article "Implementing Reusable Drag & Drop Classes" By Leon Finker in section MFC / C++ >> Shell Programming >> General, should provide you with enough information. Good Luck! INTP
At first glance, it looks wonderful. Thank you :)