]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
64 bit compilation fix for wxTextCtrl in wxMSW.
[wxWidgets.git] / src / msw / scrolbar.cpp
index ce238227dbfbb135d649f8d94bfeac2fbeab6ae7..33b0a0c58188276593a3ff5b4a2a51303289ad52 100644 (file)
@@ -156,9 +156,7 @@ void wxScrollBar::SetThumbPosition(int viewStart)
 
 int wxScrollBar::GetThumbPosition(void) const
 {
-    SCROLLINFO scrollInfo;
-    wxZeroMemory(scrollInfo);
-    scrollInfo.cbSize = sizeof(SCROLLINFO);
+    WinStruct<SCROLLINFO> scrollInfo;
     scrollInfo.fMask = SIF_POS;
 
     if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )