win32 - cursor position reletive to client rect
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?
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
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
look at the function in my previous post and also at ClientToScreen, Screen ToClient
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement