Creating custom message types in win32?

后端 未结 3 1935
野的像风
野的像风 2021-02-08 13:04

Is there a way to define and send custom message types in Win32, to be caught by your Main message handler? For example, my main message handler captures messages such as WM_PAI

3条回答
  •  梦毁少年i
    2021-02-08 13:34

    • If you created the window class, you can use the WM_USER range (or WM_APP)
    • If it is not your class, you can use WM_APP
    • If you want to broadcast the message to every top level window, register your own global message with RegisterWindowMessage

提交回复
热议问题