Is there a way to change the mouse cursor as it moves over graph cursors when using trackmode TrackDragCursor? To indicate that you can position the cursor.
You could accomplish this with the graph's CursorMouseMove event. For example, create a new project with the NI Measurement Studio AppWizard and follow these steps:
Add a graph to the dialog. Right-click on the graph in the dialog editor, click "Class Wizard ...", click the Member Variables tab and add a member variable for the graph called m_graph. Click OK.
Right-click on the graph in the dialog editor and click on "Events ...". Add an event handler for CursorMouseMove called OnCursorMouseMove and add an event handler for PlotAreaMouseMove called OnPlotAreaMouseMove. Click OK.
Go to the header file for your dialog class and add this to the bottom of the class declaration:
private: bool m_cursorChanged;
HCURSOR m_defaultCursor; HCURSOR m_crossCursor;
Go to the source file for your dialog class and add this to the end of the OnInitDialog method:
To add to Elton's detailed answer, just make sure that the Graph's Windowless property is NOT checked (should be set to false). Otherwise, you won't see the cursor changing since the Graph won't be receiving any windows events.
I haven't tested this, but I think TrackAllEvents is the only way that you're going to get both the plot area events and the cursor events that you need for this.