177 references to Util
System.Windows.Forms (177)
winforms\Managed\System\WinForms\Application.cs (1)
4210if (NativeMethods.Util.LOWORD(unchecked( (int) (long)m.WParam)) == NativeMethods.WM_DESTROY) {
winforms\Managed\System\WinForms\Button.cs (1)
405if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.BN_CLICKED) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1323if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.BN_CLICKED && !ValidationCancelled) {
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
1029switch (NativeMethods.Util.HIWORD(m.WParam)) { 1056int keycode = NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ComboBox.cs (19)
1616int comboXMid = NativeMethods.Util.SignedLOWORD(m.LParam) + (editRectMid.left - comboRectMid.left); 1617int comboYMid = NativeMethods.Util.SignedHIWORD(m.LParam) + (editRectMid.top - comboRectMid.top); 1842int x = NativeMethods.Util.SignedLOWORD(m.LParam); 1843int y = NativeMethods.Util.SignedHIWORD(m.LParam); 1853OnClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 1854OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 1910OnMouseUp(new MouseEventArgs(MouseButtons.Middle, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 1947if (Cursor != DefaultCursor && childEdit != null && m.HWnd == childEdit.Handle && NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) { 3260SendMessage(NativeMethods.CB_SETEDITSEL, 0, NativeMethods.Util.MAKELPARAM(start, end)); 3567switch (NativeMethods.Util.HIWORD(m.WParam)) { 3727int x = NativeMethods.Util.SignedLOWORD(m.LParam); 3728int y = NativeMethods.Util.SignedHIWORD(m.LParam); 3739OnClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3740OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
winforms\Managed\System\WinForms\Control.cs (39)
8835SendMessage(NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, si.nPos), 0); 12834if (Command.DispatchID(NativeMethods.Util.LOWORD(m.WParam))) return; 12858int x = NativeMethods.Util.SignedLOWORD(m.LParam); 12859int y = NativeMethods.Util.SignedHIWORD(m.LParam); 13225int item = NativeMethods.Util.LOWORD(m.WParam); 13226int flags = NativeMethods.Util.HIWORD(m.WParam); 13390OnMouseDown(new MouseEventArgs(button, clicks, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13476OnMouseMove(new MouseEventArgs(MouseButtons, 0, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13487int x = NativeMethods.Util.SignedLOWORD(m.LParam); 13488int y = NativeMethods.Util.SignedHIWORD(m.LParam); 13503SendMessage(NativeMethods.WM_CONTEXTMENU, this.Handle, NativeMethods.Util.MAKELPARAM(pt.X, pt.Y)); 13519OnClick(new MouseEventArgs(button, clicks, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13520OnMouseClick(new MouseEventArgs(button, clicks, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13526OnDoubleClick(new MouseEventArgs(button, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13527OnMouseDoubleClick(new MouseEventArgs(button, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13532OnMouseUp(new MouseEventArgs(button, clicks, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 13551Point p = new Point(NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam)); 13557NativeMethods.Util.SignedHIWORD(m.WParam)); 13627IntPtr handle = window.GetHandleFromID((short)NativeMethods.Util.LOWORD(m.WParam)); 13818if (m.WParam == InternalHandle && NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) { 13864int msg = NativeMethods.Util.LOWORD(m.WParam); 13873hWnd = UnsafeNativeMethods.GetDlgItem(new HandleRef(this, Handle), NativeMethods.Util.HIWORD(m.WParam)); 14000int cmd = NativeMethods.Util.LOWORD(m.WParam); 14017if ((NativeMethods.Util.HIWORD(m.WParam) & NativeMethods.UISF_HIDEACCEL) != 0) { 14039if ((NativeMethods.Util.HIWORD(m.WParam) & NativeMethods.UISF_HIDEFOCUS) != 0) { 14312WmMouseDown(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 1); 14315WmMouseUp(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 1); 14318WmMouseDown(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 2); 16574pt.x = NativeMethods.Util.LOWORD(msg.lParam); 16575pt.y = NativeMethods.Util.HIWORD(msg.lParam); 16588msg.lParam = NativeMethods.Util.MAKELPARAM(pt.x, pt.y);
winforms\Managed\System\WinForms\DataObject.cs (2)
1007sizeInBytes += NativeMethods.Util.GetPInvokeStringLength(files[i]) + 1; 1048int pinvokeLen = NativeMethods.Util.GetPInvokeStringLength(files[i]);
winforms\Managed\System\WinForms\Form.cs (11)
5190if (OnGetDpiScaledSize(deviceDpi, NativeMethods.Util.SignedLOWORD(m.WParam), ref desiredSize)) { 6946Active = NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.WA_INACTIVE; 7261m.Result = (IntPtr)NativeMethods.Util.MAKELONG(0, 1); 7357int x = NativeMethods.Util.LOWORD(m.LParam); 7358int y = NativeMethods.Util.HIWORD(m.LParam); 7412int sc = (NativeMethods.Util.LOWORD(m.WParam) & 0xFFF0); 7440if (Command.DispatchID(NativeMethods.Util.LOWORD(m.WParam))) { 7623Debug.Assert(NativeMethods.Util.SignedLOWORD(m.WParam) == NativeMethods.Util.SignedHIWORD(m.WParam), "Non-square pixels!"); 7918UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight)); 7938UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight));
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1924if (m.WParam == InternalHandle && NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) {
winforms\Managed\System\WinForms\ListBox.cs (16)
1567int index = unchecked( (int) (long)SendMessage(NativeMethods.LB_ITEMFROMPOINT, 0, unchecked( (int) (long)NativeMethods.Util.MAKELPARAM(x, y)))); 1568if (NativeMethods.Util.HIWORD(index) == 0) { 1570return NativeMethods.Util.LOWORD(index); 2303switch (NativeMethods.Util.HIWORD(m.WParam)) { 2412int x = NativeMethods.Util.SignedLOWORD(m.LParam); 2413int y = NativeMethods.Util.SignedHIWORD(m.LParam); 2421OnClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 2422OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 2430OnDoubleClick(new MouseEventArgs(MouseButtons.Left, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 2431OnMouseDoubleClick(new MouseEventArgs(MouseButtons.Left, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 2459int rx = NativeMethods.Util.SignedLOWORD(m.LParam); 2460int ry = NativeMethods.Util.SignedHIWORD(m.LParam);
winforms\Managed\System\WinForms\ListView.cs (11)
4952SendMessage(NativeMethods.LVM_SETCOLUMNWIDTH, columnIndex, NativeMethods.Util.MAKELPARAM(width, 0)); 4960SendMessage(NativeMethods.LVM_SETCOLUMNWIDTH, columnIndex, NativeMethods.Util.MAKELPARAM(newWidth, 0)); 4967SendMessage(NativeMethods.LVM_SETCOLUMNWIDTH, index, NativeMethods.Util.MAKELPARAM(width,0)); 5419int x = NativeMethods.Util.SignedLOWORD(m.LParam); 5420int y = NativeMethods.Util.SignedHIWORD(m.LParam); 6284OnMouseDoubleClick(new MouseEventArgs(downButton, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 6288OnMouseUp(new MouseEventArgs(downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 6314OnMouseUp(new MouseEventArgs(downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
winforms\Managed\System\WinForms\Menu.cs (2)
490return (IntPtr) NativeMethods.Util.MAKELONG(firstMatch, action); 634char menuKey = Char.ToUpper((char) NativeMethods.Util.LOWORD(m.WParam), CultureInfo.CurrentCulture);
winforms\Managed\System\WinForms\MessageDecoder.cs (1)
367lDescription = Parenthesize(MsgToString(NativeMethods.Util.LOWORD(wparam)));
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
362switch (NativeMethods.Util.LOWORD(m.WParam)) { 375pos = NativeMethods.Util.HIWORD(m.WParam);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6080if (Visible && NativeMethods.Util.LOWORD(m.WParam) == NativeMethods.WA_INACTIVE && !this.OwnsWindow(activatedWindow)) {
winforms\Managed\System\WinForms\RichTextBox.cs (4)
30using Util = NativeMethods.Util; 3410switch (Util.HIWORD(m.WParam)) { 3740int loWord = Util.LOWORD(m.WParam); 3753loWord = Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ScrollableControl.cs (6)
1285NativeMethods.Util.MAKELPARAM((RightToLeft == RightToLeft.Yes) ? NativeMethods.SB_RIGHT : NativeMethods.SB_LEFT,0), 0); 1313bool thumbTrack = NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.SB_THUMBTRACK; 1322switch (NativeMethods.Util.LOWORD(m.WParam)) { 1399switch (NativeMethods.Util.LOWORD(m.WParam)) { 1443if (GetScrollState(ScrollStateFullDrag) || NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.SB_THUMBTRACK) { 1457ScrollEventType type = (ScrollEventType)NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ScrollBar.cs (1)
819ScrollEventType type = (ScrollEventType)NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1100int x = NativeMethods.Util.LOWORD(m.LParam);
winforms\Managed\System\WinForms\StatusStrip.cs (4)
558int x = NativeMethods.Util.LOWORD(m.LParam); 559int y = NativeMethods.Util.HIWORD(m.LParam); 618int x = NativeMethods.Util.LOWORD(m.LParam); 619int y = NativeMethods.Util.HIWORD(m.LParam);
winforms\Managed\System\WinForms\TabControl.cs (2)
1077SendMessage(NativeMethods.TCM_SETITEMSIZE, 0, (int)NativeMethods.Util.MAKELPARAM(itemSize.Width, itemSize.Height)); 1348SendMessage(NativeMethods.TCM_SETPADDING, 0, NativeMethods.Util.MAKELPARAM(padding.X, padding.Y));
winforms\Managed\System\WinForms\TextBoxBase.cs (8)
1755int longPoint = NativeMethods.Util.MAKELONG(pt.X, pt.Y); 1757index = NativeMethods.Util.LOWORD(index); 1796return new Point(NativeMethods.Util.SignedLOWORD(i), NativeMethods.Util.SignedHIWORD(i)); 2203if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.EN_CHANGE && CanRaiseTextChangedEvent) { 2206else if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.EN_UPDATE) { 2248int x = NativeMethods.Util.SignedLOWORD(m.LParam); 2249int y = NativeMethods.Util.SignedHIWORD(m.LParam);
winforms\Managed\System\WinForms\ToolBar.cs (4)
382return new Size(NativeMethods.Util.LOWORD(result), NativeMethods.Util.HIWORD(result)); 1440SendMessage(NativeMethods.TB_SETBUTTONSIZE, 0, NativeMethods.Util.MAKELPARAM((int)(buttonSize.Width*currentScaleDX), (int)(buttonSize.Height*currentScaleDY))); 1650int id = NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ToolStripManager.cs (4)
1323/*x=*/NativeMethods.Util.SignedLOWORD(m.LParam), 1324/*y=*/NativeMethods.Util.SignedHIWORD(m.LParam)); 1335/*x=*/NativeMethods.Util.SignedLOWORD(m.LParam), 1336/*y=*/NativeMethods.Util.SignedHIWORD(m.LParam));
winforms\Managed\System\WinForms\ToolTip.cs (3)
1785int width = NativeMethods.Util.LOWORD(bubbleSizeInt); 1786int height = NativeMethods.Util.HIWORD(bubbleSizeInt); 1931UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(pointX, pointY));
winforms\Managed\System\WinForms\TrackBar.cs (1)
1175switch (NativeMethods.Util.LOWORD(m.WParam)) {
winforms\Managed\System\WinForms\TreeView.cs (24)
2666OnMouseDown(new MouseEventArgs(button, clicks, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3257tvhip.pt_x = NativeMethods.Util.SignedLOWORD(m.LParam); 3258tvhip.pt_y = NativeMethods.Util.SignedHIWORD(m.LParam); 3265OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3285tvhi.pt_x = NativeMethods.Util.SignedLOWORD(m.LParam); 3286tvhi.pt_y = NativeMethods.Util.SignedHIWORD(m.LParam); 3297OnNodeMouseClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam))); 3300OnClick(new MouseEventArgs(downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3301OnMouseClick(new MouseEventArgs(downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3308OnNodeMouseDoubleClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), downButton, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam))); 3309OnDoubleClick(new MouseEventArgs(downButton, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3310OnMouseDoubleClick(new MouseEventArgs(downButton, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3315OnMouseUp(new MouseEventArgs(downButton, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0)); 3355tvhit.pt_x = NativeMethods.Util.SignedLOWORD(m.LParam); 3356tvhit.pt_y = NativeMethods.Util.SignedHIWORD(m.LParam);
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1649int x = NativeMethods.Util.SignedLOWORD(m.LParam); 1650int y = NativeMethods.Util.SignedHIWORD(m.LParam);
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
29using Util = NativeMethods.Util; 56return new Point(NativeMethods.Util.SignedLOWORD(lastXY),NativeMethods.Util.SignedHIWORD(lastXY)) ;