setupwizard.py 文件源码

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

项目:fmc-dialer 作者: sguron 项目源码 文件源码
def DropShadow(self, drop=True):
        if wx.Platform != "__WXMSW__":
            # This works only on windows
            return

        hwnd = self.GetHandle()
        print "handle wizard=", hwnd
        CS_DROPSHADOW = 0x00020000
        GCL_STYLE = -26

        csstyle = ctypes.windll.user32.GetWindowLongA(hwnd, GCL_STYLE)
        if drop:
            if csstyle & CS_DROPSHADOW:
                return
            else:
                csstyle |= CS_DROPSHADOW     #Nothing to be done
        else:
            csstyle &= ~CS_DROPSHADOW

        cstyle= ctypes.windll.user32.GetClassLongA(hwnd, GCL_STYLE)
        if drop:
            if cstyle & CS_DROPSHADOW == 0:
                ctypes.windll.user32.SetClassLongA(hwnd, GCL_STYLE, cstyle | CS_DROPSHADOW)
        else:
            ctypes.windll.user32.SetClassLongA(hwnd, GCL_STYLE, cstyle & ~CS_DROPSHADOW)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号