X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f172ca3c98dd03a0497a5a0cb063e9e8450893e..a78d2fbab115b4c6537349fb06275d1610bf4aa0:/src/msw/aboutdlg.cpp diff --git a/src/msw/aboutdlg.cpp b/src/msw/aboutdlg.cpp index 5f556453fe..8524477611 100644 --- a/src/msw/aboutdlg.cpp +++ b/src/msw/aboutdlg.cpp @@ -37,7 +37,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 @@ -50,24 +50,24 @@ void wxAboutBox(const wxAboutDialogInfo& info) msg << name; if ( info.HasVersion() ) { - msg << _T('\n'); - msg << wxString::Format(_("Version %s"), info.GetVersion()); + msg << wxT('\n'); + msg << info.GetLongVersion(); } - msg << _T("\n\n"); + msg << wxT("\n\n"); if ( info.HasCopyright() ) - msg << info.GetCopyrightToDisplay() << _T('\n'); + msg << info.GetCopyrightToDisplay() << wxT('\n'); // add everything remaining msg << info.GetDescriptionAndCredits(); - wxMessageBox(msg, wxString::Format(_("About %s"), 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); } }