From a0f3867a6a0cd50b878e9b2ea502616e59e19b99 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Sat, 25 Jan 2003 04:26:33 +0000 Subject: [PATCH] Don't default to using bitmap. Replaced old list operators. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/cursor.h | 2 +- src/msw/app.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/msw/cursor.h b/include/wx/msw/cursor.h index 8b1c63a172..6d5c213f8a 100644 --- a/include/wx/msw/cursor.h +++ b/include/wx/msw/cursor.h @@ -19,7 +19,7 @@ // compatible (even if incorrect) behaviour by default: derive wxCursor from // wxBitmap #ifndef wxICON_IS_BITMAP - #define wxICON_IS_BITMAP 1 + #define wxICON_IS_BITMAP 0 #endif #if wxICON_IS_BITMAP diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 7e26d1504f..05cb68f704 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -1149,24 +1149,24 @@ bool wxApp::SendIdleEvents(wxWindow* win) if (event.MoreRequested()) needMore = TRUE; - wxNode* node = win->GetChildren().First(); + wxWindowList::Node* node = win->GetChildren().GetFirst(); while (node) { - wxWindow* win = (wxWindow*) node->Data(); + wxWindow* win = node->GetData(); if (SendIdleEvents(win)) needMore = TRUE; - node = node->Next(); + node = node->GetNext(); } return needMore; } void wxApp::DeletePendingObjects() { - wxNode *node = wxPendingDelete.First(); + wxNode *node = wxPendingDelete.GetFirst(); while (node) { - wxObject *obj = (wxObject *)node->Data(); + wxObject *obj = node->GetData(); delete obj; @@ -1175,7 +1175,7 @@ void wxApp::DeletePendingObjects() // Deleting one object may have deleted other pending // objects, so start from beginning of list again. - node = wxPendingDelete.First(); + node = wxPendingDelete.GetFirst(); } } -- 2.47.2