def __init__(self, _hwnd):
self.hwnd = _hwnd
left, top, right, bot = win32gui.GetWindowRect(self.hwnd)
self.w = right - left
self.h = bot - top
self.hwndDC = win32gui.GetWindowDC(self.hwnd)
self.mfcDC = win32ui.CreateDCFromHandle(self.hwndDC)
self.saveDC = self.mfcDC.CreateCompatibleDC()
评论列表
文章目录