12-19-2007 03:28 AM
"Obtains information about the state of the mouse cursor. xCoordinate and yCoordinate return the position of the mouse relative to the top and left coordinates of a specific control. If you pass zero as the controlID, the coordinate information references the top and left coordinates of the panel, excluding the panel frame and title bar. GetRelativeMouseState returns the coordinates even if the mouse is not over the control or the panel."
So, how comes i get the mouse position relative to the panel ?? controlID is not 0 and is a valid control handle since any other functions uses it without any problem. The control mentionned here is a canvas.12-19-2007 03:37 AM