AnnToolDestroy 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"

//AnnToolDestroy gets fired when the user closes the annotation toolbar
//
//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::OnAnnToolDestroy()
{
   AfxMessageBox(TEXT("You have closed the toolbar."));
}