AnnHyperlinkMenuEnable 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 toggles the AnnHyperlinkMenuEnable property .
//toggle AnnHyperLinkMenu item and event
void CTutorDlg::OnButtonAnnhyperlinkmenuenable() 
{
   CString strMsg;
   VARIANT_BOOL bEnable;

   m_pRasterAnn->PutAnnHyperlinkMenuEnable( ! m_pRasterAnn->GetAnnHyperlinkMenuEnable());

   bEnable = m_pRasterAnn->GetAnnHyperlinkMenuEnable();
   strMsg.Format(TEXT("AnnHyperlinkMenuEnable: %s"), bEnable == VARIANT_TRUE ? TEXT("True") : TEXT("False"));
   AfxMessageBox(strMsg);  
}