From 9adb6da2c9c53c0c3848b5963402541526347770 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 25 Oct 2014 18:05:50 +0000 Subject: [PATCH] backport r77741: Return the caption from wxMessageDialog::GetTitle() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@78072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msgdlg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 8a234ac48f..0466b6da96 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -101,6 +101,11 @@ public: wxString GetCaption() const { return m_caption; } + // Title and caption are the same thing, GetCaption() mostly exists just + // for compatibility. + virtual void SetTitle(const wxString& title) { m_caption = title; } + virtual wxString GetTitle() const { return m_caption; } + virtual void SetMessage(const wxString& message) { m_message = message;