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();
wxMenuBar *menu_bar = new wxMenuBar();
menu_bar->Append(file_menu, _T("&File"));
-
+
+ SetIcon(wxICON(mondrian));
SetMenuBar( menu_bar );
CreateStatusBar(2);
return TRUE;
}
-void MyApp::OnUseScreen(wxCommandEvent& event)
+void MyApp::OnUseScreen(wxCommandEvent& WXUNUSED(event))
{
m_useScreen = !m_useScreen;
}