win32 - cursor position reletive to client rect

Started by
2 comments, last by Red_falcon 18 years, 4 months ago
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?
Advertisement
Look at GetClientRect
-----"Master! Apprentice! Heartborne, 7th Seeker Warrior! Disciple! In me the Wishmaster..." Wishmaster - Nightwish
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
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
-----"Master! Apprentice! Heartborne, 7th Seeker Warrior! Disciple! In me the Wishmaster..." Wishmaster - Nightwish

This topic is closed to new replies.

Advertisement