Jump to content
  • Advertisement
Sign in to follow this  

win32 - cursor position reletive to client rect

This topic is 4538 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

how can i get the mouse position relative to a window's client area? GetWindowRect is relative to GetCursorPosition, but how do i get the client rect relative to the window rect? i assume there must be some win32 methods to get the border width of the window?

Share this post


Link to post
Share on other sites
Advertisement
op, found what im looking for :)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowstructures/windowinfo.asp

Share this post


Link to post
Share on other sites
I dont know what are you trying to do, but through win structures is not a good way

look at the function in my previous post and also at ClientToScreen, Screen ToClient

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!