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