dlgappcore.py 文件源码

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

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def OnPaint(self):
        if not self.IsIconic(): return self._obj_.OnPaint()
        self.DefWindowProc(win32con.WM_ICONERASEBKGND, dc.GetHandleOutput(), 0)
        left, top, right, bottom = self.GetClientRect()
        left = (right  - win32api.GetSystemMetrics(win32con.SM_CXICON)) >> 1
        top  = (bottom - win32api.GetSystemMetrics(win32con.SM_CYICON)) >> 1
        hIcon = win32ui.GetApp().LoadIcon(self.iconId)
        self.GetDC().DrawIcon((left, top), hIcon)

    # Only needed to provide a minimized icon (and this seems
    # less important under win95/NT4
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号