X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ad2fe62d167bd7764b3d7eade75baa84a2a00e4..6873eb5b380ec6bcd339f5b6bfdae5ef6b648700:/samples/dialogs/dialogs.cpp?ds=sidebyside diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index d0e24dea09..0a3c4638ba 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -2339,7 +2339,9 @@ private: const wxString& title, int style) { - wxMessageDialog dlg(NULL, message, title, wxOK | style); + wxMessageDialog dlg(NULL, message, title, + wxOK | wxCANCEL | wxCANCEL_DEFAULT | style); + dlg.SetOKCancelLabels(wxID_COPY, wxID_OK); dlg.SetExtendedMessage("Note that this is a custom log dialog."); dlg.ShowModal(); }