From: Vadim Zeitlin Date: Sat, 25 Jul 2009 16:41:16 +0000 (+0000) Subject: Use wxSTOCK_FOR_BUTTON for message dialog custom labels. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3b5137c4e08770e1f008671ee3551bf3ab1b563b Use wxSTOCK_FOR_BUTTON for message dialog custom labels. This allows to use wxID_PRINT as a custom label without getting an unwanted ellipsis at the end. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 3e52b9c68d..6d65fc75aa 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -68,8 +68,9 @@ public: // stock items id support wxString GetAsString() const { - return m_stockId == wxID_NONE ? m_label - : wxGetStockLabel(m_stockId); + return m_stockId == wxID_NONE + ? m_label + : wxGetStockLabel(m_stockId, wxSTOCK_FOR_BUTTON); } // return the stock id or wxID_NONE if this is not a stock label