Hello,
 I use MeasurementStudio 6 ( vers 7 0 0 343) with Visual C++ 6 
 I will wish to make a contextual menu on a graph 2d to change the TrackEventmode.  
In Ni Example �Simple graph�  I add  the function  �OnMouseDownCwgraphmouse� if  Button is ButtonRight I call TrackPopmenu function with two items zoom, cursor.
cursor set TrackDragCursor, zoom set TrackZoomRectX.
After this call cursordrag and  zoom never work, pan is OK.
If  I comment the line pmnu->trackpopmenu all is working.
Where are my mistakes?
Thank in advance for your help..