void MyCanvas::DrawShapes(wxDC& dc) { wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); if (shape->IsShown()) shape->Draw(dc); node = node->GetNext(); } }
void MyCanvas::DrawShapes(wxDC& dc) { wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); if (shape->IsShown() && m_draggedShape != shape) { shape->Draw(dc, (m_currentlyHighlighted == shape)); } node = node->GetNext(); } }