Board index » Visual Studio » Drag and Drop Problem
|
ZFactor
|
Drag and Drop Problem
Visual Studio113
Hi Everyone, I have a drag and drop problem. I have an MDI application. The child frame has two docking pannels and a view. One of the docking pannels is a CListCtrl. I allow users to drag and drop listbox items from one view to another. That part works fine. Where I am having a problem is when the list box of the view being dragged to is covered by another window. So what I did was created a COleDropTarget for the Child frame and all it did was when the OnDragOver gets called I call BringWindowToTop(m_hWnd) to bring the window that the mouse is on to the Top and this part works fine too. Now on the view part of the MDI frames I have CRichEditCtrls and since the rich edit controls do their own drag and drop my child frame's COleDropTarget doesn't get the drag messages. So the user will have to drag the mouse to another part of the view where there is no CRichEditCtrl in order to bring up the view. Is there a way to get around this problem and keep the drag and drop feature of the Rich edit control without having to redo the entire Drag and drop for the CRichEditCtrl. If I could override the drag and drop routines of the CRichEditCtrl so that I can call BringWindowToTop and then call the base class routine to let it handle it's drag and drop, it would solve the problem!? AliR. - |
