AnnGetHyperlinkParam example for C++ 4.0 and later
Note: This topic is for Document/Medical only.
This example retrieves parameters using AnnGetHyperlinkParam.
void CTestocxDlg::OnAnnChangeLeadctrl1(long hObject)
{
CString msgstr;
CString tmp;
int nType;
int iParamCount;
long lRet;
nType = m_Lead1.AnnGetHyperlinkType(hObject);
if (nType == ANNLINK_ANNEVENT5)
{
msgstr.Format("Params are:\n");
for(iParamCount=0; iParamCount<5; iParamCount++)
{
lRet = m_Lead1.AnnGetHyperlinkParam(hObject, iParamCount);
tmp.Format(" Param%d: %ld\n", iParamCount + 1, lRet);
msgstr = msgstr + tmp;
}
}
else
msgstr.Format("Invalid Type");
AfxMessageBox(msgstr);
}