OnAnnToolDestroy example for C++ Builder
void __fastcall TForm1::LEADAnn1AnnToolDestroy () { ShowMessage ("You have closed the toolbar."); }