Uros Benko

Uros Benko

  • NA
  • 1
  • 0

drag and drop (ActiveX control using MFC) problems between different IE windows

Nov 7 2008 2:27 AM
Hi,

I am quite new to ActiveX controls and MFC.. 

I have developed an ActiveX control which enables dragging objects from IE window and dropping them to either desktop, Windows explorer or another IE window. When dropping to desktop or Windows explorer everything works fine.

The problem is when I try to drag from one IE window and drop to another IE window. The dropping is not executed properly. The javascript in the dropping window receives data transfer details (and executes the posting of a HTML <form>) but it does not allow the DHTML changes in the dropping window. DHTML changes in the dropping window take place (are seen by the user) at the moment when the mouse is moved back to the window from which the drag began.

I also put logs in my activeX C++ code and the method which executes the dropping is invoked at the moment of dropping. Therefore, it looks like as if activeX control holds some lock or handle on the window and does not allow refreshing and DHTML changes.

I ckecked the msdn library about COleControl but so far no luck...

Any help would be kindly appreciated...