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

[python-win32] Virtual print driver - similiar to winpdf

2008-09-21 Thread geoff
Would creating a virtual print driver be possible with pywin32, similiar to the windows pdf driver ? WE have an old application that outputs data to a dotmatrix printer. WE would like to extend this application and integrate it with another application and the simplest way to do this would be to ca

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

2008-09-21 Thread Roger Upole
You can use struct.pack to create a buffer containing a DROPFILES struct: """ typedef struct _DROPFILES { DWORD pFiles; POINT pt; BOOL fNC; BOOL fWide; } DROPFILES, *LPDROPFILES; """ fn

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 Tim Golden
mir amicitas wrote: 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 t