AnnLocked example for C++ 4.0 and later

Note: This topic is for Document/Medical only.

The following is an example of an AnnLocked event.

void CTestocxDlg::OnAnnLocked Leadctrl1(long hObject) 
{
   CString msg;

   msg.Format("Object: %ld was locked.", hObject);
   AfxMessageBox (msg);
}