]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
Removed a deprecated wxBitmap constructor, and some
[wxWidgets.git] / src / msw / mdi.cpp
index 5a6f624b6da5cb64df2e9f3bb558c82bcd5ade3a..92b2fde323b2a1e60c673c8ca9f50822d62439ed 100644 (file)
@@ -5,8 +5,8 @@
 // Modified by:
 // Created:     04/01/98
 // RCS-ID:      $Id$
-// Copyright:   (c) Julian Smart and Markus Holzem
-// Licence:     wxWindows license
+// Copyright:   (c) Julian Smart
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ===========================================================================
@@ -557,10 +557,10 @@ bool wxMDIParentFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND hwnd)
 
     if ( IsMdiCommandId(id) )
     {
-        wxWindowList::Nodenode = GetChildren().GetFirst();
+        wxWindowList::Node *node = GetChildren().GetFirst();
         while ( node )
         {
-            wxWindowchild = node->GetData();
+            wxWindow *child = node->GetData();
             if ( child->GetHWND() )
             {
                 long childId = wxGetWindowId(child->GetHWND());
@@ -1245,14 +1245,18 @@ void wxMDIClientWindow::DoSetSize(int x, int y, int width, int height, int sizeF
     {
         if (GetParent())
         {
-            wxWindowList::Nodenode = GetParent()->GetChildren().GetFirst();
+            wxWindowList::Node *node = GetParent()->GetChildren().GetFirst();
             while (node)
             {
-                wxWindowchild = node->GetData();
+                wxWindow *child = node->GetData();
                 if (child->IsKindOf(CLASSINFO(wxMDIChildFrame)))
                 {
-                    HWND hWnd = (HWND) child->GetHWND();
-                   ::RedrawWindow(hWnd, NULL, NULL, RDW_FRAME|RDW_ALLCHILDREN|RDW_INVALIDATE );
+                   ::RedrawWindow(GetHwndOf(child),
+                                  NULL,
+                                  NULL,
+                                  RDW_FRAME |
+                                  RDW_ALLCHILDREN |
+                                  RDW_INVALIDATE);
                 }
                 node = node->GetNext();
             }