DefWindowProcW not called?

Started by Kai, January 16, 2015, 21:21:49

Previous topic - Next topic

Kai

Hey,

I was trying to use the Win32 API provided by LWJGL to create a Windows window. :)
So far I was successful in creating the window following the example in org.lwjgl.system.windows.WindowsTest.

Now, it does not seem that the window handles input messages through the registered DEF_WINDOW_PROC (DefWindowProcW from User32.dll), as the window stays unresponsive.

Is there any Win32 API function I need to call in order to let Windows process the window messages, that I wouldn't do otherwise in a native Win32 application?

Thanks!
Kai

Kai

Ah, nevermind.

Just had a look at how GLFW does it with glfwPollEvents() and the windows-specific function _glfwPlatformPollEvents.

And also the LWJGL 3 Demo WGLDemo contains an example of how to do this with the Win32 API provided by LWJGL 3. Great! :)