FormCloseQuery

 
void __fastcall TForm1::FormCloseQuery(TObject *Sender, bool &CanClose){
if (MessageDlg("Close the form?", mtConfirmation, TMsgDlgButtons() << mbOK << mbCancel,0) == mrCancel)
    CanClose = false;
}




posted @ 2012-06-03 17:51  XE2011  阅读(129)  评论(0编辑  收藏  举报