Mercurial > dwindows
diff win/dw.c @ 209:85f25e8c1b1e
nMax is inclusive or exclusive?
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 01 Feb 2003 09:53:56 +0000 |
parents | 098ed34d41fb |
children | e57c182cac64 |
line wrap: on
line diff
--- a/win/dw.c Sat Feb 01 09:46:15 2003 +0000 +++ b/win/dw.c Sat Feb 01 09:53:56 2003 +0000 @@ -5392,7 +5392,7 @@ si.cbSize = sizeof(SCROLLINFO); si.fMask = SIF_RANGE | SIF_PAGE; si.nMin = 0; - si.nMax = range; + si.nMax = range - 1; si.nPage = visible; SendMessage(handle, SBM_SETSCROLLINFO, (WPARAM)TRUE, (LPARAM)&si); }