]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/aboutdlg.cpp
fix some harmless compilation in (release) MSVC build
[wxWidgets.git] / src / msw / aboutdlg.cpp
index 473158c6b886c56994c4c99a391185d671b9c94d..ff27b3ad0034b71ba3fbc35abc765342ea029a02 100644 (file)
@@ -26,6 +26,7 @@
 #if wxUSE_ABOUTDLG
 
 #ifndef WX_PRECOMP
+    #include "wx/msgdlg.h"
 #endif //WX_PRECOMP
 
 #include "wx/aboutdlg.h"
@@ -48,8 +49,12 @@ void wxAboutBox(const wxAboutDialogInfo& info)
         wxString msg;
         msg << name;
         if ( info.HasVersion() )
-            msg << _(" Version ") << info.GetVersion();
-        msg << _T('\n');
+        {
+            msg << _T('\n');
+            msg << wxString::Format(_("Version %s"), info.GetVersion());
+        }
+
+        msg << _T("\n\n");
 
         if ( info.HasCopyright() )
             msg << info.GetCopyright() << _T('\n');
@@ -57,7 +62,7 @@ void wxAboutBox(const wxAboutDialogInfo& info)
         // add everything remaining
         msg << info.GetDescriptionAndCredits();
 
-        wxMessageBox(msg, _T("About ") + name);
+        wxMessageBox(msg, wxString::Format(_("About %s"), name));
     }
     else // simple "native" version is not enough
     {