Don't use "Cancel" button in the about dialog of the listctrl sample.
[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) )