From: Julian Smart Date: Thu, 28 Apr 2005 16:14:36 +0000 (+0000) Subject: Typo correction X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8aa35ad0165eafa788d4a200f8b0f5bae29f3153 Typo correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5899ca485a..a0f4fe6255 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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;