Win32: Remove sscheck on SetScrollInfo - it returns the scrollbar position
...which can be zero. Fixes: https://github.com/solvespace/solvespace/issues/817pull/828/head
parent
bb5994ed70
commit
5d173694e7
|
@ -1342,7 +1342,7 @@ public:
|
|||
si.nMin = (UINT)(min * SCROLLBAR_UNIT);
|
||||
si.nMax = (UINT)(max * SCROLLBAR_UNIT);
|
||||
si.nPage = (UINT)(pageSize * SCROLLBAR_UNIT);
|
||||
sscheck(SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE));
|
||||
SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE); // Returns scrollbar position
|
||||
}
|
||||
|
||||
double GetScrollbarPosition() override {
|
||||
|
@ -1366,7 +1366,7 @@ public:
|
|||
return;
|
||||
|
||||
si.nPos = (int)(pos * SCROLLBAR_UNIT);
|
||||
sscheck(SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE));
|
||||
SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE); // Returns scrollbar position
|
||||
|
||||
// Windows won't synthesize a WM_VSCROLL for us here.
|
||||
if(onScrollbarAdjusted) {
|
||||
|
|
Loading…
Reference in New Issue