- ::MessageBox(NULL, str.c_str(), NULL, MB_ICONINFORMATION | MB_OK);
+ wxString title;
+ if ( wxTheApp )
+ title = wxTheApp->GetAppDisplayName();
+ else // Use some title to avoid default "Error"
+ title = _("Message");
+
+ ::MessageBox(NULL, str.t_str(), title.t_str(), MB_ICONINFORMATION | MB_OK);