]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/sashwin.cpp
MSVC 5 does not have BIF_EDITBOX.
[wxWidgets.git] / src / generic / sashwin.cpp
index 6f0fc70c246a6e74ff01fe1f88c3c45aa857a32b..0975bde05be0759c338497af4723ef28126060a8 100644 (file)
@@ -617,9 +617,9 @@ void wxSashWindow::SizeWindows()
     int cw, ch;
     GetClientSize(&cw, &ch);
 
-    if (GetChildren().Number() == 1)
+    if (GetChildren().GetCount() == 1)
     {
-        wxWindow* child = (wxWindow*) (GetChildren().First()->Data());
+        wxWindow* child = GetChildren().GetFirst()->GetData();
 
         int x = 0;
         int y = 0;
@@ -658,7 +658,7 @@ void wxSashWindow::SizeWindows()
 
         child->SetSize(x, y, width, height);
     }
-    else if (GetChildren().Number() > 1)
+    else if (GetChildren().GetCount() > 1)
     {
         // Perhaps multiple children are themselves sash windows.
         // TODO: this doesn't really work because the subwindows sizes/positions