diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 1f802618b7..10f9ed6a07 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -101,6 +101,12 @@ 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;