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