]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
attempt to fix compilation for old imagehlp.h header
[wxWidgets.git] / src / msw / window.cpp
index abdcc7dac160cf78ba010f5a96d22b91d637bbcf..d57a865456eceed0fa3562b7740ea3790c8d1f1c 100644 (file)
@@ -29,8 +29,7 @@
 #endif
 
 #ifndef WX_PRECOMP
-    #include <windows.h>
-    #include "wx/msw/winundef.h"
+    #include "wx/msw/wrapwin.h"
     #include "wx/window.h"
     #include "wx/accel.h"
     #include "wx/setup.h"
@@ -749,6 +748,7 @@ inline int GetScrollPosition(HWND hWnd, int wOrient)
     return ::GetScrollPosWX(hWnd, wOrient);
 #else
     SCROLLINFO scrollInfo;
+    scrollInfo.cbSize = sizeof(SCROLLINFO);
     scrollInfo.fMask = SIF_POS;
     if ( !::GetScrollInfo(hWnd,
                                   wOrient,