I'm having trouble capturing the PlotMouseDown event for a 2D Graph. I have the graph set to "Enabled." My EventSink entry looks like this:
ON_EVENT(CUiResultsDlgCapChart, IDC_RESULTS_CAP_CWGRAPH1, 1 /* PlotMouseDown */, OnPlotMouseDown, VTS_PI2 VTS_PI2 VTS_PVARIANT VTS_PVARIANT VTS_PI2 VTS_PI4)
My OnPlotMouseDown prototype looks like this:
afx_msg void OnPlotMouseDown(short FAR* Button,
short FAR* Shift,
VARIANT FAR* XData,
VARIANT FAR* YData,
short FAR* PlotIndex,
long FAR* PointIndex);
I set the track mode to CNiGraph::TrackAllEvents. When I click on the plot, nothing happens. If I change the track mode to TrackPanPlotAreaXY, I am able to pan the plot as expected. What am I missing? Thanks.
Mark