#endif // WX_PRECOMP
#include "wx/evtloop.h"
+#include "wx/modalhook.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
s_closing.Append(this);
- wxCommandEvent cancelEvent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
+ wxCommandEvent cancelEvent(wxEVT_BUTTON, wxID_CANCEL);
cancelEvent.SetEventObject( this );
HandleWindowEvent(cancelEvent);
s_closing.DeleteObject(this);
int wxDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
if (IsModal())
{
wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") );