Hi,
Working with OpenGL, I used
CreateWindow(
"app", "App Window",
WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE | WS_SIZEBOX | WS_MINIMIZEBOX | WS_MAXIMIZEBOX,
0, 0, 1024, 768,
NULL, NULL, hInstance, this );
to create a window and now I need to find the mouse position over the client (render) area. However, I noticed that the mouse coordinates extends all the way into the title/caption bar and this will give a wrong mouse-to-screen-to-world coordinate. I could find the fixed offset by trial and error, but is there a proper flag/trick to get the client mouse coord?
Thanks!