]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes for Borland access to members in MSWUniv.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 25 May 2005 12:49:59 +0000 (12:49 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 25 May 2005 12:49:59 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 031585be7c91008497c3525232f69ad784d2a165..766ca6ea38dc740598ba6777ef696db511f240d8 100644 (file)
@@ -1370,7 +1370,7 @@ void wxWindowMSW::Refresh(bool eraseBack, const wxRect *rect)
             pRect = NULL;
         }
 
-       // RedrawWindow not available on SmartPhone or eVC++ 3
+        // RedrawWindow not available on SmartPhone or eVC++ 3
 #if !defined(__SMARTPHONE__) && !(defined(_WIN32_WCE) && _WIN32_WCE < 400)
         UINT flags = RDW_INVALIDATE | RDW_ALLCHILDREN;
         if ( eraseBack )
@@ -1659,7 +1659,8 @@ void wxWindowMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
     // save the pending dimensions or not.  This isn't done in DoMoveWindow
     // (where the hdwp is used) because some controls have thier own
     // DoMoveWindow so it is easier to catch it here.
-    HDWP hdwp = GetParent() && !IsTopLevel() ? (HDWP)GetParent()->m_hDWP : NULL;
+    wxWindowMSW *parent = wxDynamicCast(GetParent(), wxWindowMSW);
+    HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
     if (hdwp)
     {
         m_pendingPosition = wxPoint(x, y);
@@ -4286,7 +4287,7 @@ bool wxWindowMSW::HandleSize(int WXUNUSED(w), int WXUNUSED(h), WXUINT wParam)
               node;
               node = node->GetNext() )
         {
-            wxWindow *child = node->GetData();
+            wxWindowMSW *child = node->GetData();
             child->m_pendingPosition = wxDefaultPosition;
             child->m_pendingSize = wxDefaultSize;
         }