AnnTextAlign example for C++ 5 and later
void CTutorDlg::ExampleAnnTextAlginment(long hObject )
{
AnnObjectType ObjectType ;
long Align ;
m_pRasterAnn->AnnGetType(hObject);
ObjectType = m_pRasterAnn->GetAnnType();
if (ObjectType != ANN_OBJECT_TEXT)
MessageBox(TEXT("This Object is not a Text Object"));
Align = m_pRasterAnn->GetAnnTextAlign(hObject);
if (Align = TEXT_ALIGN_CENTER )
Align = TEXT_ALIGN_LEFT;
else
Align = TEXT_ALIGN_CENTER;
m_pRasterAnn->Flags = 0;
m_pRasterAnn->PutAnnTextAlign(hObject,Align);
}