I'm using CVI 6.0 and Win2K
In a CWGraph, if you try to set an annotation visible or not it does not work.
Here is my code:
GetObjHandleFromActiveXCtrl(ihGraph, GRAPH_CWGRAPH, &hPlotGraph);
CWUIControlsLib__DCWGraphGetAnnotations (hPlotGraph, NULL, &hAnnotations);
CWUIControlsLib_CWAnnotationsItem (hAnnotations, NULL, CA_VariantInt(2), &CurrentAnnotation);
CWUIControlsLib_CWAnnotationSetVisible (CurrentAnnotation, NULL, VTRUE);
The error that I get is an invalid variable type, why ??????