X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/102174443d106f34859644c7ee7c20f1eb3fd541..2bee30334333a204427148b7464217929cdbc936:/contrib/samples/animate/anitest.cpp diff --git a/contrib/samples/animate/anitest.cpp b/contrib/samples/animate/anitest.cpp index a24faba738..b3f7d2d2e6 100644 --- a/contrib/samples/animate/anitest.cpp +++ b/contrib/samples/animate/anitest.cpp @@ -71,7 +71,7 @@ bool MyApp::OnInit() // Give it an icon #ifdef __WXMSW__ - frame->SetIcon(wxIcon("mdi_icn")); + frame->SetIcon(wxIcon(_T("mdi_icn"))); #else frame->SetIcon(wxIcon( mondrian_xpm )); #endif @@ -93,7 +93,9 @@ bool MyApp::OnInit() // Associate the menu bar with the frame frame->SetMenuBar(menu_bar); +#if wxUSE_STATUSBAR frame->CreateStatusBar(); +#endif // wxUSE_STATUSBAR frame->Show(TRUE); @@ -139,12 +141,12 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) ) { - (void)wxMessageBox(_T("wxWindows 2 Animation Demo\n") + (void)wxMessageBox(_T("wxWidgets 2 Animation Demo\n") _T("Author: Julian Smart (c) 2001\n"), _T("About Animation Demo")); } -void MyFrame::OnOpen(wxCommandEvent& event) +void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) { wxFileDialog dialog(this, _T("Please choose an animated GIF"), wxEmptyString, wxEmptyString, wxT("*.gif"), wxOPEN); @@ -180,10 +182,10 @@ MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size) wxNO_FULL_REPAINT_ON_RESIZE | wxVSCROLL | wxHSCROLL) { - SetBackgroundColour(wxColour("YELLOW")); + SetBackgroundColour(wxColour(_T("YELLOW"))); } -void MyCanvas::OnPaint(wxPaintEvent& event) +void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); #if 0