state.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pikaRL 作者: kooock 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号