Interface that acts as a target of OLE drag and drop operations
-
Called when an object is initially dragged into a window
-
Called as the dragged object moves over the window
-
Called as the object is dragged back out of the window
-
Called when the object is dropped onto the window
PyIDropTarget.DragEnter
int = DragEnter(pDataObj, grfKeyState
, pt
, pdwEffect
) Called when an object is initially dragged into a window
-
pDataObj : PyIDataObject
IDataObject interface that contains the object being dragged
-
grfKeyState : int
Combination of win32con.MK_* flags containing keyboard modifier state
-
pt : (int, int)
(x,y) Screen coordinates of cursor
-
pdwEffect : int
shellcon.DROPEFFECT_* value
Your implementation of this function should return a shellcon.DROPEFFECT_* value indicating if the object can be accepted
PyIDropTarget.DragLeave
DragLeave() Called as the object is dragged back out of the window
PyIDropTarget.DragOver
int = DragOver(grfKeyState, pt
, pdwEffect
) Called as the dragged object moves over the window
-
grfKeyState : int
Combination of win32con.MK_* flags containing keyboard modifier state
-
pt : (int, int)
(x,y) Screen coordinates of cursor
-
pdwEffect : int
shellcon.DROPEFFECT_* value
Your implementation of this function should return a shellcon.DROPEFFECT_* value indicating if the
object can be accepted at the current position
PyIDropTarget.Drop
int = Drop(pDataObj, grfKeyState
, pt
, dwEffect
) Called when the object is dropped onto the window
-
pDataObj : PyIDataObject
IDataObject interface containing the dropped object
-
grfKeyState : int
Combination of win32con.MK_* flags containing keyboard modifier state
-
pt : (int, int)
(x,y) Screen coordinates of cursor
-
dwEffect : int
shellcon.DROPEFFECT_* value
Your implementation of this function should return one of the shellcon.DROPEFFECT_* values