void MyCanvas::DrawShapes(wxDC& dc)
{
- wxNode* node = m_displayList.GetFirst();
+ wxList::compatibility_iterator node = m_displayList.GetFirst();
while (node)
{
DragShape* shape = (DragShape*) node->GetData();
void MyCanvas::ClearShapes()
{
- wxNode* node = m_displayList.GetFirst();
+ wxList::compatibility_iterator node = m_displayList.GetFirst();
while (node)
{
DragShape* shape = (DragShape*) node->GetData();
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();
return TRUE;
}
-void MyApp::OnUseScreen(wxCommandEvent& event)
+void MyApp::OnUseScreen(wxCommandEvent& WXUNUSED(event))
{
m_useScreen = !m_useScreen;
}