最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python 3.x - How window splitter is done in pywin32? - Stack Overflow

programmeradmin1浏览0评论

I have been interested on win32 programming via pywin32 in python, but the document seems to be vague on how to create splitters, buttons and other things inside the main window.

As far as I have understood, any default UI buttons and other should be done inside WM_CREATE that is implemented before window becomes visible.

There is win32ui.Createsplitter, but how can I understand the use of it compared to C/C++ code?

class Window:
def window_proc(self, hwnd, msg, wparam, lparam):
    match msg:
        case win32con.WM_CREATE:
            pass
        case win32con.WM_CLOSE:
            win32gui.DestroyWindow(hwnd)
        case win32con.WM_DESTROY:
            win32gui.PostQuitMessage(0)
    return win32gui.DefWindowProc(hwnd, msg, wparam, lparam)
发布评论

评论列表(0)

  1. 暂无评论