Lines Matching refs:nPos

95         if(si.nPos > hed->CaretLine)  in HEXEDIT_MoveCaret()
97 si.nPos = hed->CaretLine; in HEXEDIT_MoveCaret()
102 else if(hed->CaretLine >= (hed->nVisibleLinesComplete + si.nPos)) in HEXEDIT_MoveCaret()
104 si.nPos = hed->CaretLine - hed->nVisibleLinesComplete + 1; in HEXEDIT_MoveCaret()
112 …->CaretCol) + hed->InMid * 2) * hed->CharWidth) - 1, (hed->CaretLine - si.nPos) * hed->LineHeight); in HEXEDIT_MoveCaret()
114 …umnsPerLine) + hed->CaretCol) * hed->CharWidth) - 2, (hed->CaretLine - si.nPos) * hed->LineHeight); in HEXEDIT_MoveCaret()
370 EditPos->y = min(si.nPos + (pt.y / hed->LineHeight), hed->nLines - 1); in HEXEDIT_IndexFromPoint()
374 EditPos->y = si.nPos; in HEXEDIT_IndexFromPoint()
750 ScrollY = si.nPos; in HEXEDIT_WM_VSCROLL()
754 si.nPos = si.nMin; in HEXEDIT_WM_VSCROLL()
758 si.nPos = si.nMax; in HEXEDIT_WM_VSCROLL()
762 si.nPos--; in HEXEDIT_WM_VSCROLL()
766 si.nPos++; in HEXEDIT_WM_VSCROLL()
770 si.nPos -= si.nPage; in HEXEDIT_WM_VSCROLL()
774 si.nPos += si.nPage; in HEXEDIT_WM_VSCROLL()
778 si.nPos = si.nTrackPos; in HEXEDIT_WM_VSCROLL()
786 if(si.nPos != ScrollY) in HEXEDIT_WM_VSCROLL()
788 ScrollWindow(hed->hWndSelf, 0, (ScrollY - si.nPos) * hed->LineHeight, NULL, NULL); in HEXEDIT_WM_VSCROLL()
861 if(nLines > hed->nLines - si.nPos) in HEXEDIT_WM_PAINT()
863 nLines = hed->nLines - si.nPos; in HEXEDIT_WM_PAINT()
881 HEXEDIT_PaintLines(hed, hTempDC, si.nPos, nFirst, nFirst + nLines, &ps.rcPaint); in HEXEDIT_WM_PAINT()
911 ScrollY = si.nPos; in HEXEDIT_WM_MOUSEWHEEL()
914 si.nPos += cyMoveLines; in HEXEDIT_WM_MOUSEWHEEL()
918 if(si.nPos != ScrollY) in HEXEDIT_WM_MOUSEWHEEL()
920 ScrollWindow(hed->hWndSelf, 0, (ScrollY - si.nPos) * hed->LineHeight, NULL, NULL); in HEXEDIT_WM_MOUSEWHEEL()