AnnShowLockedIcon Example for C++ 5.0 and later

Note: This topic is for Document/Medical only.

This example toggles the AnnShowLockedIcon property.

For more information on declaration and unlocking procedures used in testing this example, refer to Annotation Declaration Information.

void CTutorDlg::OnButtonAnnshowlockedicon() 
{
   CString strMsg;
   m_pRasterAnn->PutAnnShowLockedIcon(!m_pRasterAnn->GetAnnShowLockedIcon());
   strMsg.Format(TEXT("AnnShowLockedIcon: %s "), m_pRasterAnn->GetAnnShowLockedIcon() == VARIANT_TRUE ? TEXT("True") : TEXT("False") );   
   AfxMessageBox(strMsg);
}