]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/forty/pile.cpp
wxTreeCtrl::Sort() changed, adapted the sample to show it.
[wxWidgets.git] / samples / forty / pile.cpp
index 02d3a922056c12365977ca978f2931bddb0281c5..d92c1d821da8e09329612f0b08ccf7275e533ab2 100644 (file)
@@ -76,10 +76,10 @@ Pile::Pile(int x, int y, int dx, int dy)
 void Pile::Redraw(wxDC& dc )
 {
    wxWindow *frame = wxTheApp->GetTopWindow();
-   wxWindow *canvas = NULL;
+   wxWindow *canvas = (wxWindow *) NULL;
    if (frame)
    {
-     wxNode *node = frame->GetChildren()->First();
+     wxNode *node = frame->GetChildren().First();
      if (node) canvas = (wxWindow*)node->Data();
    }