Original Post
I have an OpenGL window where the coordinates of the pointer are printed to the screen. The problem is when the cursor is not moving (of course) I don''t get the message therefore my coordinates are not displayed anymore. Does anyone have a work around for this...Its probably quite easy but I''ve been staring at the screen to long to see it! I was thinking since I have a SwapBuffers() call it might not work right. I wasn''t clear to explain, but as long as the cursor is over the window...moving or not, I would like the coordinates displayed as shown below...
Here is some code.
case WM_MOUSEMOVE:
xmouse = LOWORD(lParam)-(w/2);
ymouse = -(HIWORD(lParam)-(h/2));
TextOut(hLDC, 0, 0, szBuffer,
wsprintf(szBuffer, TEXT("x:%i y:%i"), xmouse, ymouse));
break;
Check out: [a href="http://www.lanceusa.com"]