From f0afc953c91b677e96849ca7be2c1ccdbb37dd2b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 11 Sep 2008 23:40:15 +0000 Subject: [PATCH] test wxCANCEL_DEFAULT flag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dialogs/dialogs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.47.2