Lines Matching defs:si
52 SCROLLINFO si;
61 si.cbSize = sizeof si;
62 si.fMask = SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL;
63 si.nMin = 0;
64 si.nMax = context->paragraph->getLineCount() - 1;
65 si.nPage = context->height / context->paragraph->getLineHeight();
66 SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
170 SCROLLINFO si;
173 si.cbSize = sizeof si;
174 si.fMask = SIF_ALL;
175 GetScrollInfo(hwnd, SB_VERT, &si);
177 vertPos = si.nPos;
182 si.nPos = si.nMin;
186 si.nPos = si.nMax;
190 si.nPos -= 1;
194 si.nPos += 1;
198 si.nPos -= si.nPage;
202 si.nPos += si.nPage;
206 si.nPos = si.nTrackPos;
213 si.fMask = SIF_POS;
214 SetScrollInfo(hwnd, SB_VERT, &si, TRUE);
215 GetScrollInfo(hwnd, SB_VERT, &si);
219 if (context->paragraph != NULL && si.nPos != vertPos) {
220 ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL);
230 SCROLLINFO si;
236 si.cbSize = sizeof si;
237 si.fMask = SIF_ALL;
238 GetScrollInfo(hwnd, SB_VERT, &si);
240 firstLine = si.nPos;
247 // NOTE: si.nPos + si.nPage may include a partial line at the bottom
250 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1);