text_combined: roger upole schkeramsncom tim golden wrote alex denham wrote parameters pdataobj pyidataobject link idataobject idragtarget dont know youre asking find coming think dragdrop technique endpointagnostic highsounding phrase ive invented dont forget trademark get hold data think correct idataobject interface provided object thats dragged unless youre also providing dragged object interface opaque im depth im hoping roger mark knowledgeable people chip point help purposes discussion attach test harness code creates simple window registers simple idroptarget object sorry help tjg import os sys import win32gui import win32con import pythoncom clsid 89dd545a2c834103afe36ceb7ff5eca4 progid timdroptarget desc drop target handler tims app class droptarget _reg_clsid_ clsid _reg_progid_ progid _reg_desc_ desc _public_methods_ dragenter dragover dragleave drop _com_interfaces_ pythoncomiid_idroptarget def dragenter self data_object key_state point effect pass def dragover self key_state point effect pass def dragleave self pass def drop self data_object key_state point effect pass def create_window def ondestroy hwnd msg wparam lparam win32guipostquitmessage 0 wc win32guiwndclass hinst win32guigetmodulehandlenone wclpszclassname dragdrop wcstyle win32concs_vredraw win32concs_hredraw wchcursor win32guiloadcursor 0 win32conidc_arrow wchbrbackground win32concolor_window wclpfnwndproc win32conwm_destroy ondestroy classatom win32guiregisterclass wc style win32conws_visible win32conws_overlapped win32conws_sysmenu return win32guicreatewindow classatom drag drop demo style 0 0 100 100 0 0 hinst none __name__ __main__ pythoncomoleinitialize drop_target pythoncomwrapobject droptarget pythoncomiid_idroptarget pythoncomiid_idroptarget pythoncomregisterdragdrop create_window drop_target win32guipumpmessages theres little extra work wrapobject work locally see win32comextauthorizationdemoseditsecuritypy example roger _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 205742 0400 pythonwin32 creating python com objects