OnAnnLocked example for C++ Builder
//The following is an example of an OnAnnLocked event.
void __fastcall TForm1::LEADAnn1AnnLocked (L_HANDLE hObject)
{
AnsiString Msg;
Msg= "AnnObject: " + IntToStr(hObject) + " was locked!";
ShowMessage ( Msg );
}