AnnGetObjectFromTag example for C++ 4.0 and later
Note: This topic is for Document/Medical only.
OLE_HANDLE hObject=NULL;
long lTag;
lTag = 4; // find object with tag == 4
hObject = m_LEAD1.AnnGetObjectFromTag(m_LEAD1.GetAnnContainer(), lTag, FALSE);
if(lTag == m_LEAD1.AnnGetTag(hObject))
AfxMessageBox("Found it!");