Skip to content

Latest commit

 

History

History
125 lines (64 loc) · 2.55 KB

PyIDropTarget.md

File metadata and controls

125 lines (64 loc) · 2.55 KB

PyIDropTarget

PyIDropTarget Object

Interface that acts as a target of OLE drag and drop operations

Methods

  • DragEnter

    Called when an object is initially dragged into a window 

  • DragOver

    Called as the dragged object moves over the window 

  • DragLeave

    Called as the object is dragged back out of the window 

  • Drop

    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

Parameters

  • 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

Return 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

Parameters

  • 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

Return Value

Your implementation of this function should return a shellcon.DROPEFFECT_* value indicating if the

object can be accepted at the current position

int = Drop(pDataObj, grfKeyState

, pt

, dwEffect

) Called when the object is dropped onto the window

Parameters

  • 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

Return Value

Your implementation of this function should return one of the shellcon.DROPEFFECT_* values