X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c06359e617e99d2d3d8ce8798fcec2ccb4a6c59b..9ed99f82da680a40becbb4e72d03a30d4acb335e:/src/msw/aboutdlg.cpp diff --git a/src/msw/aboutdlg.cpp b/src/msw/aboutdlg.cpp index 1d8823b816..5b100b81ae 100644 --- a/src/msw/aboutdlg.cpp +++ b/src/msw/aboutdlg.cpp @@ -3,7 +3,6 @@ // Purpose: implementation of wxAboutBox() for wxMSW // Author: Vadim Zeitlin // Created: 2006-10-07 -// RCS-ID: $Id$ // Copyright: (c) 2006 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -37,7 +36,7 @@ // ============================================================================ // our public entry point -void wxAboutBox(const wxAboutDialogInfo& info) +void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* parent) { // we prefer to show a simple message box if we don't have any fields which // can't be shown in it because as much as there is a standard about box @@ -49,21 +48,25 @@ void wxAboutBox(const wxAboutDialogInfo& info) wxString msg; msg << name; if ( info.HasVersion() ) - msg << _(" Version ") << info.GetVersion(); - msg << _T('\n'); + { + msg << wxT('\n'); + msg << info.GetLongVersion(); + } + + msg << wxT("\n\n"); if ( info.HasCopyright() ) - msg << info.GetCopyright() << _T('\n'); + msg << info.GetCopyrightToDisplay() << wxT('\n'); // add everything remaining msg << info.GetDescriptionAndCredits(); - wxMessageBox(msg, _("About ") + name); + wxMessageBox(msg, wxString::Format(_("About %s"), name), wxOK | wxCENTRE, parent); } else // simple "native" version is not enough { // we need to use the full-blown generic version - wxGenericAboutBox(info); + wxGenericAboutBox(info, parent); } }