DragOver vs DragEnter

G

Gary Brown

Hi,

I just implemented drag drop in one of my programs. In researching
there are implementations that use DragEnter, a few use DragOver,
and a some use both. From the available documentation it is
difficult to tell just why this is. Can someone clarify?

Thanks,
Gary
 
O

Oliver Sturm

Hello Gary,
I just implemented drag drop in one of my programs. In researching
there are implementations that use DragEnter, a few use DragOver,
and a some use both. From the available documentation it is
difficult to tell just why this is. Can someone clarify?

DragEnter is called when the mouse enters your control while dragging
something. DragOver is called while the mouse is still in that rectangle
and still dragging, so you can use it to change the drag feedback if
needed. It is possible to implement simple drag&drop operations without
the help of DragOver, so that's possibly what you saw in some of the
samples you looked at.


Oliver Sturm
 

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