AnnGetVisible example for C++ Builder
//This example toggles the visible state of the annotation container.
void __fastcall TForm1::Button2Click(TObject *S1ender)
{
TOLEBOOL bVisible;
pRasterAnn->AnnGetVisible (pRasterAnn->AnnContainer);
bVisible= pRasterAnn->AnnVisible;
if (bVisible)
bVisible= false;
else
bVisible= true;
pRasterAnn->AnnSetVisible (pRasterAnn->AnnContainer, bVisible, ANN_FLAG_RECURSE, AnsiToOLESTR(""));
pRasterAnn->AnnGetVisible (pRasterAnn->AnnContainer);
bVisible= pRasterAnn->AnnVisible;
if (bVisible)
ShowMessage ("AnnGetVisible: True");
else
ShowMessage ("AnnGetVisible: False");
}