28 references to nMax
UIAutomationClientSideProviders (28)
MS\Internal\AutomationProxies\WindowsListView.cs (4)
1685!((si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1))) 1692int future = (int) Math.Round (((si.nMax - deltaPage) - si.nMin) * fScrollPos / 100.0 + si.nMin); 1697delta = (future - si.nPos) * (cPelsAll / (si.nMax + 1 - si.nMin));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (5)
68if (pos > si.nMax - si.nPage + (si.nPage > 0 ? 1 : 0)) 96dx = (int)((pos - si.nPos) * ((double)cPelsAll / (si.nMax + 1 - si.nMin))); 102dy = (int)((pos - si.nPos) * ((double)cPelsAll / (si.nMax + 1 - si.nMin))); 121dx = (pos - si.nPos) * (cPelsAll / (si.nMax + 1 - si.nMin)); 127dy = (pos - si.nPos) * (cPelsAll / (si.nMax + 1 - si.nMin));
MS\Internal\AutomationProxies\WindowsScroll.cs (12)
152return (si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1); 200if (si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1) 240return 100.0 * (si.nPos - si.nMin) / ((si.nMax - delta) - si.nMin); 254if (!Misc.GetScrollInfo(hwnd, sbFlag, ref si) || (si.nMax == si.nMin)) 263return (100.0 * nPage) / (si.nMax + 1 - si.nMin); 298!((si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1))) 306int newPos = (int) Math.Round (((si.nMax - delta) - si.nMin) * fScrollPos / 100.0 + si.nMin); 374!((si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1))))
MS\Internal\AutomationProxies\WindowsScrollBar.cs (6)
441if (si.nMax != si.nMin && si.nPage != si.nMax - si.nMin + 1) 559return si.nMax - si.nPage; 563return (si.nMax - si.nPage) + (si.nPage > 0 ? 1 : 0); 669max = si.nMax - si.nPage; 673max = (si.nMax - si.nPage) + (si.nPage > 0 ? 1 : 0);
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (1)
552if ((si.nPos == si.nMax) && (wParam == NativeMethods.SB_PAGEDOWN || wParam == NativeMethods.SB_LINEDOWN))