- wxString msg;
- msg.Printf("This is the about dialog of minimal sample.\n"
- "Welcome to %s"
-#ifdef wxBETA_NUMBER
- " (beta %d)!"
-#endif // wxBETA_NUMBER
- , wxVERSION_STRING
-#ifdef wxBETA_NUMBER
- , wxBETA_NUMBER
-#endif // wxBETA_NUMBER
- );
-
- wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
+ wxMessageBox(wxString::Format(
+ _T("Welcome to %s!\n")
+ _T("\n")
+ _T("This is the minimal wxWidgets sample\n")
+ _T("running under %s."),
+ wxVERSION_STRING,
+ wxGetOsDescription().c_str()
+ ),
+ _T("About wxWidgets minimal sample"),
+ wxOK | wxICON_INFORMATION,
+ this);