Changed GetForce -> !CanVeto

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-02-05 15:06:25 +00:00
parent bbbbe360a8
commit 818e52c201
18 changed files with 51 additions and 18 deletions

View File

@@ -589,10 +589,12 @@ bool wxDialog::OnClose()
void wxDialog::OnCloseWindow(wxCloseEvent& event)
{
// Compatibility
if ( GetEventHandler()->OnClose() || event.GetForce())
if ( GetEventHandler()->OnClose() || !event.CanVeto())
{
this->Destroy();
}
else
event.Veto(TRUE);
}
// Destroy the window (delayed, if a managed window)