]> git.saurik.com Git - wxWidgets.git/commitdiff
Typo correction
authorJulian Smart <julian@anthemion.co.uk>
Thu, 28 Apr 2005 16:14:36 +0000 (16:14 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 28 Apr 2005 16:14:36 +0000 (16:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 5899ca485a1d79836f579a8b9e72b34f4fdd9b81..a0f4fe625504b2762287fc335e023bc8c4fec423 100644 (file)
@@ -1470,14 +1470,6 @@ void wxWindowMSW::DoGetSize(int *x, int *y) const
 // Get size *available for subwindows* i.e. excluding menu bar etc.
 void wxWindowMSW::DoGetClientSize(int *x, int *y) const
 {
-    wxExtraWindowData* extraData = (wxExtraWindowData*) m_windowReserved;
-    if (extraData && extraData->m_deferring && GetParent() && GetParent()->m_hDWP)
-    {
-        *x = extraData->m_pos.x;        
-        *y = extraData->m_pos.y;
-        return;
-    }
-
     RECT rect = wxGetClientRect(GetHwnd());
 
     if ( x )
@@ -1488,6 +1480,14 @@ void wxWindowMSW::DoGetClientSize(int *x, int *y) const
 
 void wxWindowMSW::DoGetPosition(int *x, int *y) const
 {
+    wxExtraWindowData* extraData = (wxExtraWindowData*) m_windowReserved;
+    if (extraData && extraData->m_deferring && GetParent() && GetParent()->m_hDWP)
+    {
+        *x = extraData->m_pos.x;        
+        *y = extraData->m_pos.y;
+        return;
+    }
+
     RECT rect = wxGetWindowRect(GetHwnd());
 
     POINT point;