X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cfa5d8e39c6572fd20438d5bc29360a56ac328b..8d0089653228874c88553e9494d8077b27ea6cd3:/samples/dragimag/dragimag.cpp diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 0f68a70ff4..398a53d634 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -270,7 +270,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event) void MyCanvas::DrawShapes(wxDC& dc) { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); @@ -295,7 +295,7 @@ void MyCanvas::EraseShape(DragShape* shape, wxDC& dc) void MyCanvas::ClearShapes() { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); @@ -307,7 +307,7 @@ void MyCanvas::ClearShapes() DragShape* MyCanvas::FindShape(const wxPoint& pt) const { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); @@ -337,7 +337,8 @@ MyFrame::MyFrame() wxMenuBar *menu_bar = new wxMenuBar(); menu_bar->Append(file_menu, _T("&File")); - + + SetIcon(wxICON(mondrian)); SetMenuBar( menu_bar ); CreateStatusBar(2); @@ -454,7 +455,7 @@ bool MyApp::TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap) return TRUE; } -void MyApp::OnUseScreen(wxCommandEvent& event) +void MyApp::OnUseScreen(wxCommandEvent& WXUNUSED(event)) { m_useScreen = !m_useScreen; }