X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5e4ef4ef28501ad537eaa4a41caf690d887dd3a..c663fbea6851207b4e0ac3e362868c23b1494a46:/samples/wxtest/test.cpp diff --git a/samples/wxtest/test.cpp b/samples/wxtest/test.cpp index 91f09a013f..8eec11325d 100644 --- a/samples/wxtest/test.cpp +++ b/samples/wxtest/test.cpp @@ -77,7 +77,7 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, CreateMyMenuBar(); CreateStatusBar(1); - SetStatusText( "Welcome!" ); + SetStatusText( _T("Welcome!") ); // insert main window here } @@ -93,25 +93,25 @@ void MyFrame::CreateMyMenuBar() // WDR: handler implementations for MyFrame -void MyFrame::OnTest( wxCommandEvent &event ) +void MyFrame::OnTest( wxCommandEvent &WXUNUSED(event) ) { - MyDialog dialog( this, -1, "Test" ); + MyDialog dialog( this, -1, _T("Test") ); dialog.ShowModal(); } -void MyFrame::OnAbout( wxCommandEvent &event ) +void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) ) { - wxMessageDialog dialog( this, "Welcome to SuperApp 1.0\n(C)opyright Joe Hacker", - "About SuperApp", wxOK|wxICON_INFORMATION ); + wxMessageDialog dialog( this, _T("Welcome to SuperApp 1.0\n(C)opyright Joe Hacker"), + _T("About SuperApp"), wxOK|wxICON_INFORMATION ); dialog.ShowModal(); } -void MyFrame::OnQuit( wxCommandEvent &event ) +void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) ) { Close( TRUE ); } -void MyFrame::OnCloseWindow( wxCloseEvent &event ) +void MyFrame::OnCloseWindow( wxCloseEvent &WXUNUSED(event) ) { // if ! saved changes -> return @@ -130,7 +130,7 @@ MyApp::MyApp() bool MyApp::OnInit() { - MyFrame *frame = new MyFrame( NULL, -1, "SuperApp", wxPoint(20,20), wxSize(500,340) ); + MyFrame *frame = new MyFrame( NULL, -1, _T("SuperApp"), wxPoint(20,20), wxSize(500,340) ); frame->Show( TRUE ); return TRUE;