l, t, r, b = win32gui.GetWindowRect(hwnd) h, w = b-t, r-l hDC = win32gui.GetDC(hwnd) tmpDC = win32ui.CreateDCFromHandle(hDC) myDC = tmpDC.CreateCompatibleDC() myBitmap = win32ui.CreateBitmap() myBitmap.CreateCompatibleBitmap(tmpDC, w, h) myDC.SelectObject(myBitmap) myDC.BitBlt((0,0), (w,h), tmpDC, (0,0), win32con.SRCCOPY) myBitmap.Paint(newDC) # process bitmap # cleanup In the C/C++ code snippets I've seen, the cleanup step usually involves ReleaseDC(hwnd, hDC), DeleteDC(myDC), and DeleteObject(myBitmap). Are these steps automatically handled in Python by win32gui and win32ui? If not, can someone post a snippet of cleanup code that works for this example? Thanks! Marcus Python's BitBlt function (for PyCDC objects in win32ui StretchBlt