How let parent window handle OleDragDrop messages if the child window can't handle them?

95 Views Asked by At

I have a parent view (:CView) which hosts several components (: CWnd). Components have a COleDropTarget member which gets registerd during control creation. Up to here, all works fine.

I have then added and registered an COleDropTarget in the parent CView. My hope was to receive OnDragOver messages whenever the child windows refused to deal with the dragged object by returning DROPEFFECT_NONE. But it doesn't work. The parent view gets called only if the child control don't register himself as an oletarget.

What is the proper MFC way to let the dragdrop messages pass through the windows hierarchy?

0

There are 0 best solutions below