63 references to Util
UIAutomationClientSideProviders (63)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
266int lr = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\NonClientArea.cs (1)
219int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
395IntPtr wParam = new IntPtr(NativeMethods.Util.MAKELONG(id, NativeMethods.CBN_EDITUPDATE));
MS\Internal\AutomationProxies\WindowsEditBox.cs (6)
447IntPtr lParam = NativeMethods.Util.MAKELPARAM(point.x, point.y); 449indexLowWord = unchecked((ushort)(NativeMethods.Util.LOWORD(result))); 450lineLowWord = unchecked((ushort)(NativeMethods.Util.HIWORD(result))); 750int x = (int)((short)NativeMethods.Util.LOWORD(result)); 751int y = (int)((short)NativeMethods.Util.HIWORD(result)); 974int i = NativeMethods.Util.MAKELONG((int)lowWord, (int)hiWord);
MS\Internal\AutomationProxies\WindowsGrip.cs (2)
114int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 122int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
511Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 512Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsListBox.cs (5)
298int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 299if (NativeMethods.Util.HIWORD(ret) == 0) 301int index = NativeMethods.Util.LOWORD(ret); 1156new IntPtr(NativeMethods.Util.MAKELONG( 1175IntPtr wParam = new IntPtr(NativeMethods.Util.MAKELONG(id, NativeMethods.LBN_SELCHANGE));
MS\Internal\AutomationProxies\WindowsListView.cs (3)
630int cx = NativeMethods.Util.LOWORD (size) /*- 2 * UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXBORDER)*/; 631int cy = NativeMethods.Util.HIWORD (size) /*- 2 * UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CYBORDER)*/; 1259return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_APPROXIMATEVIEWRECT, new IntPtr(-1), NativeMethods.Util.MAKELPARAM(-1, -1));
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (2)
255Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 256Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (4)
94int cPelsAll = NativeMethods.Util.LOWORD (size); 100int cPelsAll = NativeMethods.Util.HIWORD (size); 119int cPelsAll = NativeMethods.Util.LOWORD (size); 125int cPelsAll = NativeMethods.Util.HIWORD (size);
MS\Internal\AutomationProxies\WindowsScroll.cs (2)
320int wParam = NativeMethods.Util.MAKELONG(NativeMethods.SB_THUMBPOSITION, si.nPos); 431int wParam = NativeMethods.Util.MAKELONG (nAction, 0);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
701int wParam = NativeMethods.Util.MAKELONG ((short) NativeMethods.SB_THUMBPOSITION, (short) val); 703wParam = NativeMethods.Util.MAKELONG ((short) NativeMethods.SB_THUMBTRACK, (short) val);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
603int len = NativeMethods.Util.LOWORD(retValue);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
488IntPtr center = NativeMethods.Util.MAKELPARAM (pt.x, pt.y); 732IntPtr center = NativeMethods.Util.MAKELPARAM (rectW32.left + ((rectW32.right - rectW32.left) / 2), rectW32.top + ((rectW32.bottom - rectW32.top) / 2));
MS\Internal\AutomationProxies\WindowsTab.cs (15)
514int minPos = NativeMethods.Util.HIWORD(range); 515int maxPos = NativeMethods.Util.LOWORD(range); 522Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 548minPos = NativeMethods.Util.HIWORD(range); 549maxPos = NativeMethods.Util.LOWORD(range); 550currentPos = NativeMethods.Util.LOWORD(posResult); 696int max = NativeMethods.Util.LOWORD(range); 700Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 818int max = NativeMethods.Util.LOWORD(range); 819int min = NativeMethods.Util.HIWORD(range); 821if (NativeMethods.Util.HIWORD (newPos) == 0) 826newPos = NativeMethods.Util.LOWORD (newPos); 857Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 1307Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1308Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, (IntPtr)NativeMethods.MK_LBUTTON, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
116int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y));
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
312int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsTreeView.cs (4)
945int highPart = NativeMethods.Util.HIDWORD((long)_hItem); 946int lowPart = NativeMethods.Util.LODWORD((long)_hItem); 1544Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1545Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsUpDown.cs (8)
231Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 234Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 355return (double)NativeMethods.Util.LOWORD(pos); 386int min = NativeMethods.Util.HIWORD(range); 387int max = NativeMethods.Util.LOWORD(range); 400int min = NativeMethods.Util.HIWORD(range); 401int max = NativeMethods.Util.LOWORD(range); 547IntPtr center = NativeMethods.Util.MAKELPARAM (x, y);