AnnUnlocked example for C++ 5.0 and later

For details on event handling of the COM objects in MFC, and m_pDlg and m_pRasterAnn declarations, refer to the "Creating and Using Annotations (C++ 5.0 and later) Tutorial"

//The following is an example of an AnnUnlocked event.
//
//For details on event handling of the COM objects in MFC,
//  and m_pDlg and m_pRasterAnn delcarations, refer to 
//  the "Creating and Using Annotations (C++ 5.0 and later) Tutorial"
void CRasterAnnSink::OnAnnUnlocked(long hAnnObject)
{
   CString strMsg;
   
   strMsg.Format(TEXT("AnnObject: %x was unlocked."), hAnnObject);
   AfxMessageBox(strMsg);
}