Drag and Drop in Visio

B

Bony Baba

I have a listview on my form whereas my form is the child window of microsoft
visio Application. I want to drag image from my listview and drop in visio
drawing.

The problem is that how we track the mouse up events in visio because
mouseup event does not fire without mousedown event. and my mouse down events
fired on my form.

Plase help if someone have idea about that!

Thanks
 
N

nbelyh

Bony said:
I have a listview on my form whereas my form is the child window of microsoft
visio Application. I want to drag image from my listview and drop in visio
drawing.

The problem is that how we track the mouse up events in visio because
mouseup event does not fire without mousedown event. and my mouse down events
fired on my form.

You'd better use the real OLE drag-n-drop and not mouse events.
I mean, take a look at IDataObject and the stuff like that.

In Graham's book (Visio 2003 Developer's Survival Pack) this is
enlighted quite well.
Chapter 29, "IDataObject and shape Drag-and-Drop"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top