AnnTicMarkLength example for C++ 5 and later
void CTutorDlg::ExampleAnnTicMarkLength(long hObject)
{
AnnObjectType ObjectType;
double Length;
m_pRasterAnn->AnnGetType(hObject);
ObjectType = m_pRasterAnn->GetAnnType();
if (ObjectType != ANN_OBJECT_POLYRULER && ObjectType != ANN_OBJECT_RULER )
MessageBox(TEXT("This Object is not a POLYRULER or a RULER Object"));
Length = m_pRasterAnn->GetAnnTicMarkLength(hObject);
Length = Length + 10;
m_pRasterAnn->PutAnnTicMarkLength(hObject,Length);
}