]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dragimag/dragimag.cpp
Added stubs for (DeviceToLogical|LogicalToDevice)(X|Y)Rel
[wxWidgets.git] / samples / dragimag / dragimag.cpp
index 0f68a70ff43f4735a8cecd392a8784a6687ea6c1..030ff243504868fad86de297249c9c2fa68f8488 100644 (file)
@@ -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);