X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd3a0ca9e1823d135bd4c43823e842aea3bb1395..4d949e7ff45ef5947843476d60a2bca4cf95d29a:/src/msw/aboutdlg.cpp diff --git a/src/msw/aboutdlg.cpp b/src/msw/aboutdlg.cpp index ff27b3ad00..123e9823e0 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 @@ -57,17 +57,17 @@ void wxAboutBox(const wxAboutDialogInfo& info) msg << _T("\n\n"); if ( info.HasCopyright() ) - msg << info.GetCopyright() << _T('\n'); + msg << info.GetCopyrightToDisplay() << _T('\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); } }