[vbox-dev] mouse capture inside vm for dnd (drop and drop)?

Huihong Luo huisinro at yahoo.com
Wed May 13 06:42:58 GMT 2009


We are trying to implement drag and drop from host to guest, and get stuck on it.
 
We figured how to accept drops and send the data to VBoxTray.exe running in guest vm. The problem is how to continue the drag and drop operations inside vm? We need to tell VBoxTray to initiate the drag operations, and we have difficult doing this.
 
When mouse moves to vm window while pressed down, how do you informs VBoxTray.exe to handle the mouse events? Seems no applications are getting the mouse events? We need to let a window proc to be called, and then start drag and drop from there.
 
In order to initiate a drag/drop operations, usually requires the mouse is clicked and moved over a visible window. We try to use a hidden window inside vm to initiate a call to the ole ::DoDragDrop() method, so far no luck. The hidden windows does not get the mouse events.
 
perhaps, we are in wrong direction, any suggestions?
 
Thanks,
 
Huihong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090512/fffcee88/attachment.html>


More information about the vbox-dev mailing list