Home
last modified time | relevance | path

Searched refs:nPos (Results 1 – 25 of 60) sorted by relevance

123

/reactos/base/applications/fontview/
H A Ddisplay.c233 si.nPos = 0; in Display_SetTypeFace()
354 int nPos; in Display_OnVScroll() local
363 nPos = si.nPos - 50; in Display_OnVScroll()
366 nPos = si.nPos + 50; in Display_OnVScroll()
369 nPos = si.nPos - 10; in Display_OnVScroll()
372 nPos = si.nPos + 10; in Display_OnVScroll()
379 nPos = si.nPos; in Display_OnVScroll()
382 nPos = max(nPos, si.nMin); in Display_OnVScroll()
383 nPos = min(nPos, si.nMax); in Display_OnVScroll()
384 if (nPos != si.nPos) in Display_OnVScroll()
[all …]
/reactos/modules/rostests/tests/winhello/
H A Dwinhello.c418 int nPos; in MainWndProc() local
444 Scrollparameter.nPos = Scrollparameter.nPos; in MainWndProc()
448 Scrollparameter.nPos = Scrollparameter.nMin; in MainWndProc()
452 Scrollparameter.nPos = Scrollparameter.nMax; in MainWndProc()
456 Scrollparameter.nPos--; in MainWndProc()
460 Scrollparameter.nPos++; in MainWndProc()
494 int nPos; in MainWndProc() local
520 Scrollparameter.nPos = Scrollparameter.nPos; in MainWndProc()
532 Scrollparameter.nPos--; in MainWndProc()
536 Scrollparameter.nPos++; in MainWndProc()
[all …]
/reactos/modules/rostests/apitests/user32/
H A DSetScrollInfo.c17 int nPos; in START_TEST() member
133 ok(si.nPos == 0, "nPos = %d\n", si.nPos); in START_TEST()
142 si.nPos = tests[i].nPos; in START_TEST()
154 …ok(si.nPos == tests[i].nPosResult, "[%d] nPos = %d, expected %d\n", i, si.nPos, tests[i].nPosResul… in START_TEST()
H A DScrollBarRedraw.c214 ScrollInfo.nPos = 0; in HideVertScrollBar()
229 ScrollInfo.nPos = 0; in ShowVertScrollBar()
244 ScrollInfo.nPos = 0; in HideHorzScrollBar()
259 ScrollInfo.nPos = 0; in ShowHorzScrollBar()
/reactos/base/applications/clipbrd/
H A Dscrollutils.c176 NewPos = si.nPos - iDelta; in OnScroll()
182 NewPos = si.nPos + iDelta; in OnScroll()
188 NewPos = si.nPos - si.nPage; in OnScroll()
194 NewPos = si.nPos + si.nPage; in OnScroll()
212 NewPos = si.nPos; in OnScroll()
219 if (si.nPos == NewPos) in OnScroll()
237 si.nPos = NewPos; in OnScroll()
275 si.nPos = lpState->CurrentX; in UpdateWindowScrollState()
285 si.nPos = lpState->CurrentY; in UpdateWindowScrollState()
/reactos/modules/rosapps/applications/devutils/vgafontedit/
H A Dfontwnd.c294 nOrgPos = si.nPos; in FontWndProc()
300 si.nPos = si.nMin; in FontWndProc()
305 si.nPos = si.nMax; in FontWndProc()
310 si.nPos -= 20; in FontWndProc()
315 si.nPos += 20; in FontWndProc()
320 si.nPos -= si.nPage; in FontWndProc()
325 si.nPos += si.nPage; in FontWndProc()
329 si.nPos = si.nTrackPos; in FontWndProc()
337 if(si.nPos != nOrgPos) in FontWndProc()
349 … SetWindowPos(Info->hFontBoxesWnd, NULL, -si.nPos, pt.y, 0, 0, SWP_NOZORDER | SWP_NOSIZE); in FontWndProc()
[all …]
/reactos/modules/rostests/win32/comctl32/buttonvistest/
H A Dbuttonvistest.cpp262 oldPos = sInfo.nPos; in OnScroll()
267 sInfo.nPos--; in OnScroll()
271 sInfo.nPos++; in OnScroll()
275 sInfo.nPos -= sInfo.nPage; in OnScroll()
279 sInfo.nPos += sInfo.nPage; in OnScroll()
283 sInfo.nPos = sInfo.nTrackPos; in OnScroll()
291 sInfo.nPos = sInfo.nMin; in OnScroll()
295 sInfo.nPos = sInfo.nMax; in OnScroll()
302 sInfo.nPos = min(max(sInfo.nPos, 0), Maximum); in OnScroll()
304 if (oldPos != sInfo.nPos) in OnScroll()
[all …]
/reactos/base/applications/mscutils/eventvwr/
H A Devtdetctl.c403 oldPos = sInfo.nPos; in OnScroll()
408 sInfo.nPos--; in OnScroll()
412 sInfo.nPos++; in OnScroll()
432 sInfo.nPos = sInfo.nMin; in OnScroll()
443 sInfo.nPos = min(max(sInfo.nPos, 0), Maximum); in OnScroll()
445 if (oldPos != sInfo.nPos) in OnScroll()
450 *pOriginXY = sInfo.nPos; in OnScroll()
501 scOldPos.y = sInfo.nPos; in OnSize()
525 sInfo.nPos = scOldPos.y; in OnSize()
539 scOldPos.x = sInfo.nPos; in OnSize()
[all …]
/reactos/win32ss/user/ntuser/
H A Daccelerator.c50 UINT Mask = 0, nPos; in co_IntTranslateAccelerator() local
103 nPos = pAccel->cmd; in co_IntTranslateAccelerator()
106 if ((MENU_FindItem (&MenuObject, &nPos, MF_BYPOSITION))) in co_IntTranslateAccelerator()
117 nPos = pAccel->cmd; in co_IntTranslateAccelerator()
120 if ((MENU_FindItem (&MenuObject, &nPos, MF_BYPOSITION))) in co_IntTranslateAccelerator()
134 nPos = IntFindSubMenu(&hMenu, hSubMenu); in co_IntTranslateAccelerator()
135 TRACE("hSysMenu = %p, hSubMenu = %p, nPos = %u\n", hMenu, hSubMenu, nPos); in co_IntTranslateAccelerator()
136 co_IntSendMessage(hWnd, WM_INITMENUPOPUP, (WPARAM)hSubMenu, MAKELPARAM(nPos, TRUE)); in co_IntTranslateAccelerator()
H A Dscrollbar.c296 lpsi->nPos = psi->nPos; in co_IntGetScrollInfo()
336 lpsi->nPos = pSBData->pos; in NEWco_IntGetScrollInfo()
516 OldPos = Info->nPos; in co_IntSetScrollInfo()
517 if (Info->nPos != lpsi->nPos) in co_IntSetScrollInfo()
519 Info->nPos = lpsi->nPos; in co_IntSetScrollInfo()
520 pSBData->pos = lpsi->nPos; in co_IntSetScrollInfo()
553 if (Info->nPos < Info->nMin) in co_IntSetScrollInfo()
554 pSBData->pos = Info->nPos = Info->nMin; in co_IntSetScrollInfo()
555 else if (Info->nPos > MaxPos) in co_IntSetScrollInfo()
556 pSBData->pos = Info->nPos = MaxPos; in co_IntSetScrollInfo()
/reactos/dll/win32/riched20/
H A Dpaint.c1048 if (editor->horz_si.nPos != x) { in ME_ScrollAbs()
1052 editor->horz_si.nPos = x; in ME_ScrollAbs()
1058 if (editor->vert_si.nPos != y) { in ME_ScrollAbs()
1062 editor->vert_si.nPos = y; in ME_ScrollAbs()
1177 si.nPos = editor->horz_si.nPos; in ME_UpdateScrollBar()
1192 si.nPos = MulDiv(si.nPos, 0xFFFF, si.nMax); in ME_UpdateScrollBar()
1232 si.nPos = editor->vert_si.nPos; in ME_UpdateScrollBar()
1247 si.nPos = MulDiv(si.nPos, 0xFFFF, si.nMax); in ME_UpdateScrollBar()
1296 x = editor->horz_si.nPos; in ME_EnsureVisible()
1306 x = editor->horz_si.nPos; in ME_EnsureVisible()
[all …]
H A Dcaret.c267 - editor->vert_si.nPos; in ME_GetCursorCoordinates()
1133 x += editor->horz_si.nPos; in ME_CharFromPos()
1134 y += editor->vert_si.nPos; in ME_CharFromPos()
1211 x += editor->horz_si.nPos; in ME_LButtonDown()
1212 y += editor->vert_si.nPos; in ME_LButtonDown()
1272 x += editor->horz_si.nPos; in ME_MouseMove()
1273 y += editor->vert_si.nPos; in ME_MouseMove()
1425 int yOldScrollPos = editor->vert_si.nPos; in ME_ArrowPageUp()
1438 yd = y + editor->vert_si.nPos - yOldScrollPos; in ME_ArrowPageUp()
1483 int yOldScrollPos = editor->vert_si.nPos; in ME_ArrowPageDown()
[all …]
H A Dtxtsrv.c169 *plPos = This->editor->horz_si.nPos; in fnTextSrv_TxGetHScroll()
187 *plPos = This->editor->vert_si.nPos; in fnTextSrv_TxGetVScroll()
/reactos/dll/win32/aclui/
H A Dchecklist.c580 ScrollInfo.nPos = 0; in UpdateControl()
678 ScrollInfo.nPos = NewPos; in MakeCheckItemVisible()
1610 INT OldPos = ScrollInfo.nPos; in CheckListWndProc()
1621 ScrollInfo.nPos++; in CheckListWndProc()
1626 if (ScrollInfo.nPos > 0) in CheckListWndProc()
1628 ScrollInfo.nPos--; in CheckListWndProc()
1681 ScrollInfo.nPos = 0; in CheckListWndProc()
1694 ScrollInfo.nPos = 0; in CheckListWndProc()
1698 if (OldPos != ScrollInfo.nPos) in CheckListWndProc()
1930 if (ScrollInfo.nPos < 0) in CheckListWndProc()
[all …]
/reactos/base/applications/regedit/
H A Dhexedit.c750 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()
786 if(si.nPos != ScrollY) in HEXEDIT_WM_VSCROLL()
911 ScrollY = si.nPos; in HEXEDIT_WM_MOUSEWHEEL()
914 si.nPos += cyMoveLines; in HEXEDIT_WM_MOUSEWHEEL()
[all …]
/reactos/dll/win32/browseui/
H A Dtravellog.cpp100 …STDMETHOD(InsertMenuEntries)(IUnknown *punk, HMENU hmenu, int nPos, int idFirst, int idLast, DWORD…
489 int nPos, int idFirst, int idLast, DWORD dwFlags) in InsertMenuEntries() argument
533 if (InsertMenuItem(hmenu, nPos, TRUE, &menuItemInfo)) in InsertMenuEntries()
535 nPos++; in InsertMenuEntries()
554 if (InsertMenuItem(hmenu, nPos, TRUE, &menuItemInfo)) in InsertMenuEntries()
556 nPos++; in InsertMenuEntries()
575 if (InsertMenuItem(hmenu, nPos, TRUE, &menuItemInfo)) in InsertMenuEntries()
577 nPos++; in InsertMenuEntries()
596 if (InsertMenuItem(hmenu, nPos, TRUE, &menuItemInfo)) in InsertMenuEntries()
598 nPos++; in InsertMenuEntries()
/reactos/dll/win32/comctl32/
H A Dpager.c202 return infoPtr->nPos; in PAGER_GetPos()
253 int nPos = infoPtr->nPos; in PAGER_PositionChildWnd() local
271 -nPos, 0, in PAGER_PositionChildWnd()
342 if (infoPtr->nPos > 0) in PAGER_UpdateBtns()
388 INT oldPos = infoPtr->nPos; in PAGER_SetPos()
391 infoPtr->nPos = 0; in PAGER_SetPos()
395 infoPtr->nPos = newPos; in PAGER_SetPos()
399 if (infoPtr->nPos != oldPos) in PAGER_SetPos()
432 infoPtr->nPos = -1; in PAGER_RecalcSize()
502 infoPtr->nPos = -1; in PAGER_SetChild()
[all …]
/reactos/dll/win32/shimgvw/
H A Dshimgvw.c182 si.nPos = (ZoomedWidth - rcClient.right) / 2 + pData->m_xScrollOffset; in ZoomWnd_UpdateScroll()
183 si.nPos = max(min(si.nPos, si.nMax - (INT)si.nPage), si.nMin); in ZoomWnd_UpdateScroll()
185 pData->m_xScrollOffset = si.nPos - (ZoomedWidth - rcClient.right) / 2; in ZoomWnd_UpdateScroll()
198 si.nPos = (ZoomedHeight - rcClient.bottom) / 2 + pData->m_yScrollOffset; in ZoomWnd_UpdateScroll()
199 si.nPos = max(min(si.nPos, si.nMax - (INT)si.nPage), si.nMin); in ZoomWnd_UpdateScroll()
201 pData->m_yScrollOffset = si.nPos - (ZoomedHeight - rcClient.bottom) / 2; in ZoomWnd_UpdateScroll()
1075 si.nPos = (SHORT)HIWORD(wParam); in ZoomWnd_OnHVScroll()
1078 si.nPos -= 48; in ZoomWnd_OnHVScroll()
1081 si.nPos += 48; in ZoomWnd_OnHVScroll()
1084 si.nPos -= si.nPage; in ZoomWnd_OnHVScroll()
[all …]
/reactos/win32ss/user/winsrv/consrv/frontends/gui/
H A Dconwnd.c448 sInfo.nPos = Buff->ViewOrigin.Y; in ResizeConWnd()
1503 oldPos = sInfo.nPos; in OnScroll()
1508 sInfo.nPos--; in OnScroll()
1512 sInfo.nPos++; in OnScroll()
1516 sInfo.nPos -= sInfo.nPage; in OnScroll()
1520 sInfo.nPos += sInfo.nPage; in OnScroll()
1534 sInfo.nPos = sInfo.nMin; in OnScroll()
1538 sInfo.nPos = sInfo.nMax; in OnScroll()
1545 sInfo.nPos = min(max(sInfo.nPos, 0), Maximum); in OnScroll()
1547 if (oldPos != sInfo.nPos) in OnScroll()
[all …]
/reactos/win32ss/user/user32/windows/
H A Dmenu.c83 ITEM *MENU_FindItem( HMENU *hmenu, UINT *nPos, UINT wFlags ) in MENU_FindItem() argument
94 if (*nPos >= menu->cItems) return NULL; in MENU_FindItem()
96 if (pItem) pItem = &pItem[*nPos]; in MENU_FindItem()
108 ITEM *subitem = MENU_FindItem( &hsubmenu, nPos, wFlags ); in MENU_FindItem()
114 else if (item->wID == *nPos) in MENU_FindItem()
121 else if (item->wID == *nPos) in MENU_FindItem()
123 *nPos = i; in MENU_FindItem()
130 *nPos = fallback_pos; in MENU_FindItem()
969 int nPos) in GetMenuItemID() argument
972 if (!(lpmi = MENU_FindItem(&hMenu,(UINT*)&nPos,MF_BYPOSITION))) return -1; in GetMenuItemID()
[all …]
/reactos/dll/cpl/sysdm/
H A Dvirtmem.c278 UINT i, nPos = 0; in WritePageFileSettings() local
296 lstrcpy(szPagingFiles + nPos, szText); in WritePageFileSettings()
299 nPos += (UINT)lstrlen(szText) + 1; in WritePageFileSettings()
302 szPagingFiles[nPos] = _T('\0'); in WritePageFileSettings()
303 nPos++; in WritePageFileSettings()
322 (DWORD)nPos * sizeof(TCHAR)) == ERROR_SUCCESS) in WritePageFileSettings()
/reactos/modules/rostests/winetests/user32/
H A Dscroll.c411 si.nPos = 0; in scrollbar_test_default()
579 si.nPos = 0; in test_SetScrollInfo()
595 si.nPos = 0; in test_SetScrollInfo()
657 ok(set_scrollinfo.nPos == 1, "nPos = %x\n", set_scrollinfo.nPos); in test_subclass()
699 ok(set_scrollinfo.nPos == 1, "nPos = %x\n", set_scrollinfo.nPos); in test_subclass()
/reactos/base/applications/mspaint/
H A Dcanvas.cpp268 si.nPos = (SHORT)HIWORD(wParam); in OnHVScroll()
271 si.nPos -= 5; in OnHVScroll()
274 si.nPos += 5; in OnHVScroll()
277 si.nPos -= si.nPage; in OnHVScroll()
280 si.nPos += si.nPage; in OnHVScroll()
283 si.nPos = max(min(si.nPos, si.nMax), si.nMin); in OnHVScroll()
/reactos/dll/cpl/intl/
H A Dmisc.c5 InsSpacePos(PCWSTR szInsStr, const int nPos) in InsSpacePos() argument
22 if (nStrCnt == nStrSize - nPos) in InsSpacePos()
/reactos/base/applications/wordpad/
H A Dprint.c1075 origPos = si.nPos; in preview_proc()
1079 si.nPos = si.nMin; in preview_proc()
1082 si.nPos = si.nMax; in preview_proc()
1085 si.nPos -= si.nPage / 10; in preview_proc()
1088 si.nPos += si.nPage / 10; in preview_proc()
1091 si.nPos -= si.nPage; in preview_proc()
1094 si.nPos += si.nPage; in preview_proc()
1097 si.nPos = si.nTrackPos; in preview_proc()
1103 if (si.nPos != origPos) in preview_proc()
1105 int amount = origPos - si.nPos; in preview_proc()

123