[python-win32] Drag and drop of files (CF_HDROP)

2008-09-20 Thread mir amicitas
I have been trying to implement drag and drop of files in python. My application will written in PyQt4 but they I want to use the native drag and drop for windows as PyQt only supports mime based dragging, which does not work for some of the windows applications that I want to connect with. I hav

Re: [python-win32] Drag and drop of files (CF_HDROP)

2008-09-21 Thread mir amicitas
> > > Can you have a look at this thread from earlier this > year to see if it helps to answer you question: > > http://mail.python.org/pipermail/python-win32/2008-April/007409.html > > TJG Thanks Tim for sending along that thread. This is close to what I need (and provides some useful informatio

Re: [python-win32] Drag and drop of files (CF_HDROP)

2008-09-21 Thread mir amicitas
Thank you for you help, that works perfectly. I can now drag files from my program (yay!). One more question . . . In the Microsoft specification for DoDragDrop there are 4 arguments (data, source, allowed effects, used effect). However in the pythoncom implementation only 3 arguments are allow

Re: [python-win32] Drag and drop of files (CF_HDROP)

2008-09-24 Thread mir amicitas
>The last arg is output, and will be returned from the function. > In that case I am confused about the output coming out of DoDragDrop(). The output that I get for different cases: drag canceled: 0 copy succeed: 1 move succeed: 0 I expect that move succeed would give me a value of 2 (shellcon.