AnnTextRotate example for C++ 5 and later
void CTutorDlg::ExampleAnnTextRotate(long hObject)
{
AnnObjectType ObjectType ;
long Angle ;
m_pRasterAnn->AnnGetType(hObject);
ObjectType = m_pRasterAnn->GetAnnType();
if (ObjectType != ANN_OBJECT_TEXT )
MessageBox(TEXT("This Object is not an Text Object"));
Angle = m_pRasterAnn->GetAnnTextRotate(hObject);
Angle = Angle + TEXT_ROTATE_90;
m_pRasterAnn->Flags = 0 ;
m_pRasterAnn->PutAnnTextRotate(hObject, Angle);
}