AnnRectLeft example for C++ 4.0 and later

Note: This topic is for Document/Medical only.

void CAnntestDlg::OnAnnEnumerateLeadctrl1(long hObject) 
{
   CString csOut;

   switch(m_nEnumerate)
   {
   case 0:
      if(m_LEAD1.AnnGetVisible(hObject))
         csOut.Format("Type: %ld - Visible", m_LEAD1.AnnGetType(hObject));
      else
         csOut.Format("Type: %ld - Not Visible", m_LEAD1.AnnGetType(hObject));
      AfxMessageBox(csOut);
      break;
   case 1:
      m_nTag++;
      m_LEAD1.AnnSetTag(hObject, m_nTag);
      break;
   case 2:
      m_LEAD1.SetAnnRectLeft(hObject, m_LEAD1.GetAnnRectLeft(hObject) + 50);
      break;
   case 3:
      m_LEAD1.SetAnnRectTop(hObject, m_LEAD1.GetAnnRectTop(hObject) + 50);
      break;
   case 4:
      m_LEAD1.SetAnnRectWidth(hObject, m_LEAD1.GetAnnRectWidth(hObject) + 50);
      break;
   case 5:
      m_LEAD1.SetAnnRectHeight(hObject, m_LEAD1.GetAnnRectHeight(hObject) + 50);
      break;
   case 6:
      if(m_LEAD1.AnnGetAutoMenuItemEnable(hObject, 0, ANNAUTOTEXT_MENU_DELETE))
         AfxMessageBox("True");
      else
         AfxMessageBox("False");
      break;
   }
}