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