Lines Matching refs:si

59     SCROLLINFO si;  in InitParagraph()  local
68 si.cbSize = sizeof si; in InitParagraph()
69 si.fMask = SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL; in InitParagraph()
70 si.nMin = 0; in InitParagraph()
71 si.nMax = pf_getLineCount(context->paragraph) - 1; in InitParagraph()
72 si.nPage = context->height / pf_getLineHeight(context->paragraph); in InitParagraph()
73 SetScrollInfo(hwnd, SB_VERT, &si, TRUE); in InitParagraph()
178 SCROLLINFO si; in WndProc() local
181 si.cbSize = sizeof si; in WndProc()
182 si.fMask = SIF_ALL; in WndProc()
183 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
185 vertPos = si.nPos; in WndProc()
190 si.nPos = si.nMin; in WndProc()
194 si.nPos = si.nMax; in WndProc()
198 si.nPos -= 1; in WndProc()
202 si.nPos += 1; in WndProc()
206 si.nPos -= si.nPage; in WndProc()
210 si.nPos += si.nPage; in WndProc()
214 si.nPos = si.nTrackPos; in WndProc()
221 si.fMask = SIF_POS; in WndProc()
222 SetScrollInfo(hwnd, SB_VERT, &si, TRUE); in WndProc()
223 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
227 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc()
228 … ScrollWindow(hwnd, 0, pf_getLineHeight(context->paragraph) * (vertPos - si.nPos), NULL, NULL); in WndProc()
238 SCROLLINFO si; in WndProc() local
244 si.cbSize = sizeof si; in WndProc()
245 si.fMask = SIF_ALL; in WndProc()
246 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
248 firstLine = si.nPos; in WndProc()
258 … lastLine = min (si.nPos + (le_int32) si.nPage, pf_getLineCount(context->paragraph) - 1); in WndProc()