AnnDeleteUserHandle example for C++ 5 and later
//'This examples deletes the first user handle of an object
void CTutorDlg::ExampleAnnDeleteUserHandle(long hObject)
{
long Count;
m_pRasterAnn->AnnGetUserHandles(hObject);
Count = m_pRasterAnn->UserHandleCount;
if (Count > 0 )
m_pRasterAnn->AnnDeleteUserHandle (hObject, 0);
else
MessageBox(TEXT("No User Handle"));
}