Actually, I was looking for movement of the mouse (without left/right clicking) within the black-portion of the graph. My graph's limits are -20.0 to +20.0 degrees. When the user moves the mouse within the graph (not the label area), the value I need to get is -20.0 to +20.0:
- I tried using
GetRelativeMouseState(handle,PANEL_GRAPH, &x,&y,0,0,0)
- but it gave me coordinates including the label area of the control. I "jerry-rigged" it to give me values of -20.0 to +20.0 within the graph itself, and 0.0 if within the label area.
= the accuracy of this method is very low...
There HAS to be a better way...