Sign in to follow this  

getting Exact Screen Coordinates

This topic is 4733 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.

Recommended Posts

I'm trying to get the coordinates of the mouse inside my window: currently I have this: POINT pt; GetCursorPos(&pt); ScreenToClient( m_hwnd, &pt); but the only problem is that this seems to include the boarder of the window. Is there a function that can remove the boarder and give me the coordinates only while it is inside the window "box" if thats what its called? thanks,

Share this post


Link to post
Share on other sites
Do some research on the AdjustWindowRect() API function. I think I remenber myself using that for a similar purpose sometime, but I don't remember exactly how it works...

Best of luck

Share this post


Link to post
Share on other sites

This topic is 4733 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this