// Author: David Webster
// Modified by:
// Created: 10/14/99
-// RCS-ID: $Id$
// Copyright: (c) David Webster
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/os2/private.h"
#include "wx/evtloop.h"
#include "wx/scopedptr.h"
+#include "wx/modalhook.h"
#define wxDIALOG_DEFAULT_X 300
#define wxDIALOG_DEFAULT_Y 300
#define wxDIALOG_DEFAULT_WIDTH 500
#define wxDIALOG_DEFAULT_HEIGHT 500
-IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow)
// ----------------------------------------------------------------------------
// wxDialogModalData
//
// Must defer setting the title until after dialog is created and sized
//
- if (!rsTitle.IsNull())
+ if ( !rsTitle.empty() )
SetTitle(rsTitle);
return true;
} // end of wxDialog::Create
//
int wxDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
wxASSERT_MSG( !IsModal(), wxT("wxDialog::ShowModal() reentered?") );
m_endModalCalled = false;