[python-win32] win32gui, win32ui -- how to release references?

2005-03-20 Thread Marcus Goldfish
As an addendum to my previous post: I was able to successfully do screen capturing using win32gui + win32ui, [though I am still looking for a solution that works without win32ui]. The code goes something like: l, t, r, b = win32gui.GetWindowRect(hwnd) h, w = b-t, r-l hDC = win32gui.GetD

[python-win32] win32gui and BitBlt()?

2005-03-20 Thread Marcus Goldfish
I've been working on a screen capture utility for python, but came across a snag using win32gui: I can't find BitBlt()? Does this module contain such a function? I was able to find BitBlt() as a method of PyCDC in module win32ui, but I was trying to avoid MFC. Can someone post a snippet of usi