]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msgdlg.h
Don't always override the default background colours.
[wxWidgets.git] / include / wx / msgdlg.h
index 3e52b9c68dd4084def1d0f0b75072025e8743ee2..6d65fc75aaa1e9bda0a95b1caa73d11d94dcb772 100644 (file)
@@ -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