AnnGetHyperlinkParam 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 retrieves parameters using AnnGetHyperlinkParam.
//m_hGlobalAnn is the handle to a button annotation
void CTutorDlg::OnButtonAnnGethyperlinkparam() 
{
   CString strMsg;
   long nParam0;
   long nParam1;
   long nParam2;
   long nParam3;
   long nParam4;
   
   m_pRasterAnn->AnnSetHyperlinkMsg(m_hGlobalAnn, ANN_LINK_ANNEVENT5, 1, 2, 3, 4, 5);
   
   m_pRasterAnn->AnnGetHyperlinkParam(m_hGlobalAnn, 0);
   nParam0 = m_pRasterAnn->GetAnnHyperlinkParam();
   m_pRasterAnn->AnnGetHyperlinkParam (m_hGlobalAnn, 1);
   nParam1 = m_pRasterAnn->GetAnnHyperlinkParam();
   m_pRasterAnn->AnnGetHyperlinkParam (m_hGlobalAnn, 2); 
   nParam2 = m_pRasterAnn->GetAnnHyperlinkParam();
   m_pRasterAnn->AnnGetHyperlinkParam (m_hGlobalAnn, 3); 
   nParam3 = m_pRasterAnn->GetAnnHyperlinkParam();
   m_pRasterAnn->AnnGetHyperlinkParam (m_hGlobalAnn, 4); 
   nParam4 = m_pRasterAnn->GetAnnHyperlinkParam();
   
   strMsg.Format(TEXT("HyperlinkParams: %d %d %d %d %d"), nParam0, nParam1, nParam2, nParam3, nParam4);
   AfxMessageBox(strMsg);
}