Forgot your password?
Or sign in with one of these services
This topic is now archived and is closed to further replies.
Peacekeeper3, June 25, 2000 in General and Gameplay Programming
This topic is 6544 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.
If you intended to correct an error in the post then please contact us.
BOOL GetCursorPos( LPPOINT lpPoint // address of structure for cursor position);...POINT pt;GetCursorPos(&pt);...// Convert to window coordinates (from screen coordinates)RECT window_rect;GetWindowRect(g_hwnd, &window_rect);pt.x -= window_rect.left;pt.y -= window_rect.top;...// Convert to client coordinates (from window coordinates)RECT client_rect;GetClientRect(g_hwnd, &client_rect);pt.x -= client_rect.left;pt.y -= client_rect.top;
Bread CollectorStarted Friday at 03:31 AM
DasunSetStarted Thursday at 03:52 PM
Martin BrentnallStarted Thursday at 02:12 PM
recpStarted Thursday at 09:16 AM
HalpmelurngewdStarted Wednesday at 07:33 PM
Participate in the game development conversation and more when you create an account on GameDev.net!