Applied [ 792543 ] sample of animate contrib corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,7 +71,7 @@ bool MyApp::OnInit()
|
|||||||
|
|
||||||
// Give it an icon
|
// Give it an icon
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
frame->SetIcon(wxIcon("mdi_icn"));
|
frame->SetIcon(wxIcon(_T("mdi_icn")));
|
||||||
#else
|
#else
|
||||||
frame->SetIcon(wxIcon( mondrian_xpm ));
|
frame->SetIcon(wxIcon( mondrian_xpm ));
|
||||||
#endif
|
#endif
|
||||||
@@ -144,7 +144,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
|
|||||||
_T("About Animation Demo"));
|
_T("About Animation Demo"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnOpen(wxCommandEvent& event)
|
void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxFileDialog dialog(this, _T("Please choose an animated GIF"),
|
wxFileDialog dialog(this, _T("Please choose an animated GIF"),
|
||||||
wxEmptyString, wxEmptyString, wxT("*.gif"), wxOPEN);
|
wxEmptyString, wxEmptyString, wxT("*.gif"), wxOPEN);
|
||||||
@@ -180,10 +180,10 @@ MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
|
|||||||
wxNO_FULL_REPAINT_ON_RESIZE |
|
wxNO_FULL_REPAINT_ON_RESIZE |
|
||||||
wxVSCROLL | wxHSCROLL)
|
wxVSCROLL | wxHSCROLL)
|
||||||
{
|
{
|
||||||
SetBackgroundColour(wxColour("YELLOW"));
|
SetBackgroundColour(wxColour(_T("YELLOW")));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyCanvas::OnPaint(wxPaintEvent& event)
|
void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
#if 0
|
#if 0
|
||||||
|
Reference in New Issue
Block a user