AnnRotateAngle example for C++ 5 and later
void CTutorDlg::ExampleAnnGetRotateAngle(long hObject)
{
CString szMsg ;
double RadiansAngle ;
double DegreesAngle ;
RadiansAngle = m_pRasterAnn->AnnGetAngle(hObject);
If (m_pRasterAnn->GetAnnError() != 0)
{
szMsg.Format(TEXT("There is an error equal to = %d "), m_pRasterAnn->GetAnnError());
MessageBox (szMsg);
Return ;
}
DegreesAngle = RadiansAngle * 180 / 3.1415926535;
szMsg.Format(TEXT("Angle Rotation : Radias = %f \n\t Degrees = %f "), RadiansAngle, DegreesAngle);
MessageBox (szMsg);
return 1;
}