]> git.saurik.com Git - wxWidgets.git/commitdiff
fix Borland bug http://news.gmane.org/find-root.php?message_id=%3c43A0B07F.8010204...
authorChris Elliott <biol75@york.ac.uk>
Thu, 15 Dec 2005 15:07:36 +0000 (15:07 +0000)
committerChris Elliott <biol75@york.ac.uk>
Thu, 15 Dec 2005 15:07:36 +0000 (15:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 88f22022508dcc7873fecdd107218cde70195c00..eeebee20c1144f219cfe64a9aa57a951ec8388b4 100644 (file)
@@ -848,15 +848,10 @@ inline int GetScrollPosition(HWND hWnd, int wOrient)
     WinStruct<SCROLLINFO> scrollInfo;
     scrollInfo.cbSize = sizeof(SCROLLINFO);
     scrollInfo.fMask = SIF_POS;
-    if ( !::GetScrollInfo(hWnd,
-                          wOrient,
-                          &scrollInfo) )
-    {
-        // Not necessarily an error, if there are no scrollbars yet.
-        // wxLogLastError(_T("GetScrollInfo"));
-    }
+    ::GetScrollInfo(hWnd, wOrient, &scrollInfo );
+    
     return scrollInfo.nPos;
-//    return ::GetScrollPos(hWnd, wOrient);
+
 #endif
 }