1. My knowledge of OpenGL/GLFW is - newbie-level knowledge. My knowledge of WIN32 is 'okay'ish'.
2. I want to both use GLFW, and also, be able to send Win32 WM_USER messages to GLFW window and be able to respond to them. (I'm trying to 'tweak' a medium-sized open-source application that uses GLFW).
2.1. ^ Ideally, I would presume that GLFW would have some sort of 'glfwRegisterUserWindowMessageCallback(void (*WindowMessageCallback)(UINT, WPARAM, LPARAM))' that I could 'register' with GLFW (like there is glfwSetKeyCallback() that yes exists in GLFW), and, that would be subesquently called by GLFW.
3. ^ If not, then I suppose what I have to do is:
3.1. Create window myself using CreateWindow()/CreateWindowEx() and then somehow 'attach' GLFW to it, instead of simply calling GLFW's glfwCreateWindow().
What's the right way to go about it?
Thanks.
Asked
Active
Viewed 28 times
0
-
First i should note that this looks like an XY problem because using WM_USER for transferring data is probably not the best idea and there are much better IPC mechanisms. However if you want to do it anyway a viable approach that won't require digging too much into GLFW is to create a dedicated message-only window https://stackoverflow.com/questions/4081334/using-createwindowex-to-make-a-message-only-window – user7860670 May 10 '22 at 14:49