#endif
#include "wx/evtloop.h"
+#include "wx/testing.h"
#ifdef __VMS__
#pragma message disable nosimpint
#define wxUSE_INVISIBLE_RESIZE 1
-IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow)
-
wxDialog::wxDialog()
{
m_modalShowing = false;
// Shows a dialog modally, returning a return code
int wxDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
Show(true);
// after the event loop ran, the widget might already have been destroyed
// Now process all events in case they get sent to a destroyed dialog
wxFlushEvents( display );
- delete m_eventLoop;
- m_eventLoop = NULL;
+ wxDELETE(m_eventLoop);
// TODO: is it safe to call this, if the dialog may have been deleted
// by now? Probably only if we're using delayed deletion of dialogs.