Correct.
I would like to show a cursor (vertical line so only X-axis will change) that follows the mouse cursor when it is over the graph control.
I use: GetRelativeMouseState (panelGraph, PANELBIG_GRAPHBIG, &x, &y, NULL, NULL, NULL);
to get the mouse position.
Then I use: GetCtrlAttribute (panelGraph, PANELBIG_GRAPHBIG,ATTR_PLOT_AREA_WIDTH, &pWidth);
to get the width of the plot.
I use these 2 positions to find out which x-axis index position to attach the vertical line cursor to.
It does a 'decent' job of following the mouse cursor, but totally breaks down if zooming is used as it will only work if the autozoom is on.
Thx,
Jason