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

I have been interested on win32 programming via pywin32 in python, but the document seems to be vague o

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)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744075851a4554385.html

相关推荐

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

    I have been interested on win32 programming via pywin32 in python, but the document seems to be vague o

    8天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信