AnnLocked 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 AnnLocked 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::OnAnnLocked(long hAnnObject)
{
   CString strMsg;

   strMsg.Format(TEXT("AnnObject: %x was locked."), hAnnObject);
   AfxMessageBox(strMsg);
}