AnnIsFixedRect example for C++ 5 and later
void CTutorDlg::ExampleAnnIsFixedInRect(long hObject ,long WndLeft ,long WndTop ,long WndRight ,long WndBottom)
{
VARIANT_BOOL bFixedInRect;
m_pRasterAnn->Flags = ANN_FLAG_RECURSE;
bFixedInRect = m_pRasterAnn->GetAnnIsFixedRect(hObject, WndLeft, WndTop, WndRight, WndBottom);
if(bFixedInRect == TRUE)
MessageBox(TEXT("There are Fixed annotations visible."));
else
MessageBox(TEXT("There are No Fixed annotations visible."));
}