]> git.saurik.com Git - wxWidgets.git/commitdiff
add missing wxUSE_DEFERRED_SIZING tests (closes #10766)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 May 2009 12:22:42 +0000 (12:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 May 2009 12:22:42 +0000 (12:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 6254c9ae8d147071365482e4413041b8341e9123..827c12ec1685eced0d29544afc9f5d5d28f349ba 100644 (file)
@@ -513,13 +513,15 @@ void wxWindowMSW::Init()
     m_lastKeydownProcessed = false;
 
     m_hWnd = 0;
-    m_hDWP = 0;
 
     m_xThumbSize = 0;
     m_yThumbSize = 0;
 
+#if wxUSE_DEFERRED_SIZING
+    m_hDWP = 0;
     m_pendingPosition = wxDefaultPosition;
     m_pendingSize = wxDefaultSize;
+#endif // wxUSE_DEFERRED_SIZING
 
 #ifdef __POCKETPC__
     m_contextMenuEnabled = false;