X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12b58624e9975726334e2f9b2ee7f3e7b86595f0..85f138db83939ce7c59a942aaecca7fa98168db3:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index edb0b0dab3..90f30bb4f6 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -110,15 +110,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow) #endif BEGIN_EVENT_TABLE(wxDialog, wxDialogBase) -#ifdef __SMARTPHONE__ - EVT_MENU(wxID_OK, wxDialog::OnOK) - EVT_MENU(wxID_APPLY, wxDialog::OnApply) - EVT_MENU(wxID_CANCEL, wxDialog::OnCancel) -#else EVT_BUTTON(wxID_OK, wxDialog::OnOK) EVT_BUTTON(wxID_APPLY, wxDialog::OnApply) EVT_BUTTON(wxID_CANCEL, wxDialog::OnCancel) -#endif EVT_SYS_COLOUR_CHANGED(wxDialog::OnSysColourChanged) @@ -212,7 +206,7 @@ wxDialog::wxDialog(wxWindow *parent, { Init(); - Create(parent, -1, title, wxPoint(x, y), wxSize(w, h), style, name); + Create(parent, wxID_ANY, title, wxPoint(x, y), wxSize(w, h), style, name); } void wxDialog::SetModal(bool WXUNUSED(flag))