X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da865392847890996b548748db78a5d70882dc21..3d05544e4e71e7ff10984dae5a9b8a07d92f42a6:/samples/resource/resource.cpp?ds=sidebyside diff --git a/samples/resource/resource.cpp b/samples/resource/resource.cpp index 9b4db2b651..19aab9edca 100644 --- a/samples/resource/resource.cpp +++ b/samples/resource/resource.cpp @@ -179,19 +179,19 @@ bool MyFrame::OnClose(void) } BEGIN_EVENT_TABLE(MyDialog, wxDialog) - EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk) - EVT_BUTTON(RESOURCE_CANCEL, MyDialog::OnCancel) + // EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk) + EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel) END_EVENT_TABLE() void MyDialog::OnOk(wxCommandEvent& WXUNUSED(event) ) { - EndModal(RESOURCE_OK); + // EndModal(RESOURCE_OK); } void MyDialog::OnCancel(wxCommandEvent& WXUNUSED(event) ) { - EndModal(RESOURCE_CANCEL); + EndModal(ID_BUTTON109); }