AnnDestroy example for C++ 5.0 and later
Note: This topic is for Document/Medical only.
For more information on declaration and unlocking procedures used in testing this example, refer to Annotation Declaration Information.
//This example destroys the selected objects in an annotation container.
void CTutorDlg::OnButtonAnndestroy()
{
long hAnnContainer = NULL;
hAnnContainer = m_pRasterAnn->GetAnnContainer();
m_pRasterAnn->AnnDestroy(hAnnContainer, ANN_FLAG_RECURSE | ANN_FLAG_SELECTED);
}