admin管理员组

文章数量:1357294

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)

本文标签: python 3xHow window splitter is done in pywin32Stack Overflow