- wxString msg;
- msg.Printf( _T("This is the about dialog of minimal sample.\n")
- _T("Welcome to %s"), wxVERSION_STRING);
-
- wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
-}
-
-void MyFrame::OnCreateLbox(wxCommandEvent& WXUNUSED(event))
-{
- for ( size_t n = 0; n < NUM_LBOXES; n++ )
- {
- m_lboxes.Add(new wxListBox(this, -1, wxPoint(m_pos, m_pos)));
- m_pos += POS_STEP;
- }
+ 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);