583 references to WPARAM
System.Private.Windows.Core (34)
Windows\Win32\Foundation\WPARAM.cs (17)
10
public static implicit operator void*(
WPARAM
value) => (void*)value.Value;
11
public static implicit operator
WPARAM
(void* value) => new((nuint)value);
13
public static explicit operator HWND(
WPARAM
value) => (HWND)(nint)value.Value;
14
public static explicit operator
WPARAM
(HWND value) => new((nuint)value.Value);
16
public static explicit operator HDC(
WPARAM
value) => (HDC)(nint)value.Value;
17
public static explicit operator
WPARAM
(HDC value) => new((nuint)value.Value);
19
public static explicit operator
WPARAM
(HFONT value) => new((nuint)value.Value);
21
public static explicit operator BOOL(
WPARAM
value) => (BOOL)(nint)value.Value;
22
public static explicit operator
WPARAM
(BOOL value) => new((nuint)(nint)value);
24
public static explicit operator int(
WPARAM
value) => (int)(nint)value.Value;
25
public static explicit operator uint(
WPARAM
value) => (uint)value.Value;
26
public static explicit operator nint(
WPARAM
value) => (nint)value.Value;
27
public static explicit operator
WPARAM
(int value) => new((nuint)(nint)value);
29
public static explicit operator
WPARAM
(char value) => new(value);
31
public static explicit operator
WPARAM
(Color value) => new((nuint)ColorTranslator.ToWin32(value));
44
public static
WPARAM
MAKEWPARAM(int low, int high) =>
45
(
WPARAM
)(uint)((int)(((ushort)(((nuint)low) & 0xffff)) | ((uint)((ushort)(((nuint)high) & 0xffff))) << 16));
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (2)
55
public static explicit operator
WPARAM
(in CreateDcScope scope) => (
WPARAM
)(nuint)(nint)scope.HDC;
Windows\Win32\PInvokeCore.CallWindowProc.cs (2)
8
internal static unsafe LRESULT CallWindowProc<T>(void* lpPrevWndFunc, T hWnd, uint Msg,
WPARAM
wParam, LPARAM lParam)
12
(delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, LRESULT>)lpPrevWndFunc,
Windows\Win32\PInvokeCore.PostMessage.cs (2)
8
/// <inheritdoc cref="PostMessage(HWND, uint,
WPARAM
, LPARAM)"/>
12
WPARAM
wParam = default,
Windows\Win32\PInvokeCore.SendMessage.cs (10)
8
/// <inheritdoc cref="SendMessage(HWND, uint,
WPARAM
, LPARAM)"/>
12
WPARAM
wParam = default,
20
/// <inheritdoc cref="SendMessage(HWND, uint,
WPARAM
, LPARAM)"/>
27
LRESULT result = SendMessage(hWnd.Handle, (uint)Msg, (
WPARAM
)wParam.Handle, lParam);
32
/// <inheritdoc cref="SendMessage(HWND, uint,
WPARAM
, LPARAM)"/>
36
WPARAM
wParam,
45
/// <inheritdoc cref="SendMessage(HWND, uint,
WPARAM
, LPARAM)"/>
49
WPARAM
wParam,
60
/// <inheritdoc cref="SendMessage(HWND, uint,
WPARAM
, LPARAM)"/>
72
return SendMessage(hWnd, Msg, (
WPARAM
)(nuint)w, (LPARAM)(nint)l);
Windows\Win32\UI\WindowsAndMessaging\WNDPROC.cs (1)
6
internal delegate LRESULT WNDPROC(HWND hWnd, uint msg,
WPARAM
wParam, LPARAM lParam);
System.Private.Windows.GdiPlus (2)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (2)
160
public static explicit operator
WPARAM
(in DeviceContextHdcScope scope) => (
WPARAM
)scope.HDC;
System.Windows.Forms (403)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (2)
326
PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
367
int i = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)index);
System\Windows\Forms\ActiveX\AxHost.cs (2)
1762
wParam = (
WPARAM
)char.ToUpper(charCode, CultureInfo.CurrentCulture),
3213
(delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, LRESULT>)wndProc,
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
104
WPARAM
wp,
112
WPARAM
wp,
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
377
if (lpmsg->message == PInvokeCore.WM_KEYDOWN && lpmsg->wParam == (
WPARAM
)(nuint)VIRTUAL_KEY.VK_TAB)
476
PInvokeCore.SendMessage(_control, PInvokeCore.WM_PRINT, (
WPARAM
)hdcDraw, (LPARAM)flags);
System\Windows\Forms\Application.ComponentManager.cs (1)
55
WPARAM
wParam,
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
356
BOOL IMsoComponent.Interface.FDebugMessage(nint hInst, uint msg,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\Control.cs (16)
1571
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (
WPARAM
)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
3358
(
WPARAM
)(actionMask | PInvoke.UIS_SET));
3404
(
WPARAM
)(actionMask | (int)PInvoke.UIS_SET));
4370
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
5000
(
WPARAM
)hDc,
5065
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
7168
Message m = Message.Create(HWND, PInvokeCore.WM_PRINTCLIENT, (
WPARAM
)hdc, (LPARAM)flags);
7477
PInvokeCore.SendMessage(this, PInvokeCore.WM_HSCROLL,
WPARAM
.MAKEWPARAM((int)SCROLLBAR_COMMAND.SB_THUMBPOSITION, si.nPos));
8842
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (
WPARAM
)hDC, (LPARAM)lParam);
8859
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (
WPARAM
)dcWrapper.HDC, (LPARAM)lParam);
8907
WPARAM
newWParam = 0;
8939
newWParam = kpe.KeyChar == preEventCharacter ? m.WParamInternal : (
WPARAM
)kpe.KeyChar;
9087
(
WPARAM
)((int)PInvoke.UIS_CLEAR | ((int)toClear << 16)));
10701
private void SetWindowFont() => PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFONT, (
WPARAM
)FontHandle, (LPARAM)(BOOL)false);
11665
PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (
WPARAM
)HWND, (LPARAM)screenLocation);
11802
(
WPARAM
)handle, m.LParamInternal);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1189
PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (
WPARAM
)(BOOL)true);
1217
PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (
WPARAM
)(BOOL)false);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
210
PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (
WPARAM
)(int)_checkState);
500
PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (
WPARAM
)(int)_checkState);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
163
PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (
WPARAM
)(BOOL)value);
349
PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (
WPARAM
)(BOOL)_isChecked);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
44
(
WPARAM
)currentIndex,
185
PInvokeCore.SendMessage(_owningComboBox, PInvoke.CB_SETTOPINDEX, (
WPARAM
)GetCurrentIndex());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (4)
399
PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
404
int index = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_CHARFROMPOS, (
WPARAM
)0, (LPARAM)pt);
430
PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_GETRECT, (
WPARAM
)0, ref rectangle);
442
int i = (int)PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)index);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (25)
441
PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)value);
489
PInvokeCore.SendMessage(this, PInvoke.CB_SHOWDROPDOWN, (
WPARAM
)(value ? -1 : 0));
698
PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (
WPARAM
)value);
880
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)value);
956
PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (
WPARAM
)(-1), value ?? string.Empty);
974
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (
WPARAM
)(&start), (LPARAM)(&end));
995
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (
WPARAM
)(&value));
1576
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
1967
int h = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (
WPARAM
)index);
2160
int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_ADDSTRING, (
WPARAM
)0, GetItemText(item));
2189
int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXTLEN, (
WPARAM
)index);
2198
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXT, (
WPARAM
)index, (LPARAM)b);
2211
int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_INSERTSTRING, (
WPARAM
)index, GetItemText(item));
2238
PInvokeCore.SendMessage(this, PInvoke.CB_DELETESTRING, (
WPARAM
)index);
2273
PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (
WPARAM
)MaxLength);
2302
PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_SETMARGINS, (
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
2308
PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)dropDownWidth);
2361
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)_selectedIndex);
3247
PInvokeCore.SendMessage(this, PInvoke.CB_SETEDITSEL, (
WPARAM
)0, LPARAM.MAKELPARAM(start, end));
3291
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)DataManager.Position);
3389
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)(-1), (LPARAM)ItemHeight);
3394
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)(-1), (LPARAM)ItemHeight);
3398
int original = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (
WPARAM
)i);
3403
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)i, (LPARAM)mievent.ItemHeight);
3759
m.WParamInternal = (
WPARAM
)dc;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
618
PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)s_cachedDropDownWidth);
628
PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)DropDownWidth);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (6)
359
PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (
WPARAM
)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
363
PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (
WPARAM
)(uint)NMDATETIMECHANGE_FLAGS.GDT_NONE);
896
PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (
WPARAM
)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1280
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (
WPARAM
)(int)colorIndex, (LPARAM)value);
1291
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCFONT, (
WPARAM
)CalendarFontHandle, (LPARAM)(-1));
1321
PInvokeCore.SendMessage(this, PInvoke.DTM_SETRANGE, (
WPARAM
)flags, ref times[0]);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
136
PInvokeCore.SendMessage(owner, PInvokeCore.WM_SYSKEYDOWN, (
WPARAM
)(int)Keys.Down);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
252
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
261
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
304
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (
WPARAM
)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
392
PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMRECT, (
WPARAM
)index, ref rect);
464
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (
WPARAM
)0, (LPARAM)ItemHeight);
761
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (
WPARAM
)0, (LPARAM)ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (19)
257
PInvokeCore.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (
WPARAM
)_columnWidth);
1122
PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (
WPARAM
)value);
1425
int height = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMHEIGHT, (
WPARAM
)index);
1480
int selection = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (
WPARAM
)index);
1567
int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXTLEN, (
WPARAM
)index);
1576
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXT, (
WPARAM
)index, (LPARAM)b);
1616
bool selected = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (
WPARAM
)index) > 0;
1617
PInvokeCore.SendMessage(this, PInvoke.LB_DELETESTRING, (
WPARAM
)index);
1639
PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (
WPARAM
)(value ? index : -1));
1643
PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (
WPARAM
)(BOOL)value, (LPARAM)index);
1682
PInvokeCore.SendMessage(this, PInvoke.LB_GETSELITEMS, (
WPARAM
)count, (LPARAM)pResult);
1747
PInvokeCore.SendMessage(this, PInvoke.LB_SETLOCALE, (
WPARAM
)PInvokeCore.GetThreadLocale());
1751
PInvokeCore.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (
WPARAM
)_columnWidth);
1756
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (
WPARAM
)0, (LPARAM)ItemHeight);
1761
PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (
WPARAM
)_topIndex);
1772
PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (
WPARAM
)wpar, (LPARAM)pOffsets);
2118
PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (
WPARAM
)DataManager.Position);
2257
PInvokeCore.SendMessage(this, PInvoke.LB_SETHORIZONTALEXTENT, (
WPARAM
)width);
2314
PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (
WPARAM
)wpar, (nint)pOffsets);
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (4)
207
PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETCARETINDEX, (
WPARAM
)currentIndex);
214
PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (
WPARAM
)currentIndex);
224
int itemHeight = (int)PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_GETITEMHEIGHT, (
WPARAM
)i);
236
PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (
WPARAM
)(currentIndex - visibleItemsCount + 1));
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (2)
401
_width = (int)PInvokeCore.SendMessage(ListView, PInvoke.LVM_GETCOLUMNWIDTH, (
WPARAM
)Index);
483
PInvokeCore.SendMessage(ListView, PInvoke.LVM_SETCOLUMNORDERARRAY, (
WPARAM
)cols.Length, (LPARAM)pCols);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
334
PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (
WPARAM
)colIdx);
507
int retval = (int)PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (
WPARAM
)index);
System\Windows\Forms\Controls\ListView\ListView.cs (89)
354
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
404
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (
WPARAM
)0, ref lvbkImage);
559
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
815
(
WPARAM
)(-1),
843
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
959
(
WPARAM
)PInvoke.LVSIL_GROUPHEADER,
1223
(
WPARAM
)PInvoke.LVSIL_NORMAL,
1459
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)(value?.Handle ?? 0));
1566
(
WPARAM
)PInvoke.LVSIL_STATE,
1582
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE);
1603
(
WPARAM
)PInvoke.LVSIL_STATE,
1663
PInvokeCore.SendMessage(this, PInvoke.LVM_GETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
1693
nint result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
1837
PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (
WPARAM
)(int)_viewStyle);
1893
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)_virtualListSize);
2212
&& PInvokeCore.SendMessage(hwnd, PInvoke.HDM_HITTEST, (
WPARAM
)0, ref lvhi) != -1 && lvhi.iItem > -1)
2262
PInvokeCore.PostMessage(this, PInvoke.LVM_ARRANGE, (
WPARAM
)(int)value);
2398
PInvokeCore.SendMessage(this, PInvokeCore.WM_TIMER, (
WPARAM
)LVLABELEDITTIMER);
3182
if (PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (
WPARAM
)DefaultGroup.ID) == 0)
3201
PInvokeCore.SendMessage(this, PInvoke.LVM_ENSUREVISIBLE, (
WPARAM
)index);
3323
(
WPARAM
)(startIndex - 1),
3371
PInvokeCore.SendMessage(this, PInvoke.LVM_SETEXTENDEDLISTVIEWSTYLE, (
WPARAM
)PInvoke.LVS_EX_CHECKBOXES);
3375
(
WPARAM
)PInvoke.LVS_EX_CHECKBOXES,
3426
displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (
WPARAM
)(lastIndex - 1), ref info);
3431
displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (
WPARAM
)(-1) /* beginning */, ref info);
3491
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
3540
int index = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi);
3556
PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMPOSITION, (
WPARAM
)index, ref position);
3573
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (
WPARAM
)index, (LPARAM)(uint)mask);
3602
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (
WPARAM
)index, ref itemrect) == 0
3631
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (
WPARAM
)index, ref itemrect) == 0
3679
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETSUBITEMRECT, (
WPARAM
)itemIndex, ref itemrect) == 0
3710
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, handle);
3728
? (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi)
3729
: (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
3935
return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_INSERTCOLUMNW, (
WPARAM
)index, ref lvColumn);
3980
PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMW, (
WPARAM
)0, ref lvItem);
4123
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)_itemCount);
4152
result = PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (
WPARAM
)lvItem.iGroupId);
4198
(
WPARAM
)0,
4310
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_NORMAL, (LPARAM)handle);
4519
PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (
WPARAM
)(-1));
4541
PInvokeCore.SendMessage(this, PInvoke.CCM_SETVERSION, (
WPARAM
)5);
4547
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
4548
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
4554
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (
WPARAM
)0, (LPARAM)PInvokeCore.CLR_NONE);
4570
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCALLBACKMASK, (
WPARAM
)(uint)callbackMask);
4575
PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (
WPARAM
)(uint)_viewStyle);
4631
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)VirtualListSize);
4691
(
WPARAM
)exMask,
4704
(
WPARAM
)0,
4932
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
4936
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (
WPARAM
)0, (LPARAM)PInvokeCore.CLR_NONE);
4959
PInvokeCore.SendMessage(headerWindow, PInvoke.HDM_LAYOUT, (
WPARAM
)0, ref hd);
4995
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)c);
5002
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)c);
5009
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.Handle);
5014
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.Handle);
5019
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
5024
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.Handle);
5048
int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_REDRAWITEMS, (
WPARAM
)startIndex, (LPARAM)endIndex);
5156
PInvokeCore.SendMessage(this, PInvoke.LVM_REMOVEGROUP, (
WPARAM
)group.ID);
5162
PInvokeCore.SendMessage(this, PInvoke.LVM_SCROLL, (
WPARAM
)0, (LPARAM)scrollY);
5203
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (
WPARAM
)0, ref backgroundImage);
5284
result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (
WPARAM
)ch.Index, ref lvColumn);
5349
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (
WPARAM
)columnIndex, LPARAM.MAKELPARAM(width, 0));
5362
(
WPARAM
)columnIndex,
5372
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (
WPARAM
)index, LPARAM.MAKELPARAM(width, 0));
5393
(
WPARAM
)orderedColumns.Length,
5452
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (
WPARAM
)0, ref lvItem);
5472
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (
WPARAM
)0, ref lvItem);
5488
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMPOSITION32, (
WPARAM
)index, ref pt);
5508
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMSTATE, (
WPARAM
)index, ref lvItem);
5545
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMTEXTW, (
WPARAM
)itemIndex, ref lvItem);
5561
PInvokeCore.SendMessage(this, PInvoke.LVM_SETSELECTIONMARK, (
WPARAM
)0, itemIndex);
5572
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)handle);
5592
PInvokeCore.SendMessage(this, PInvoke.LVM_SORTITEMS, (
WPARAM
)0, (LPARAM)callbackPointer);
5605
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE, (LPARAM)handle);
5647
PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (
WPARAM
)(-1));
5744
(
WPARAM
)exMask,
5852
return PInvokeCore.SendMessage(this, msg, (
WPARAM
)lParam, ref lvgroup);
5861
int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_ENABLEGROUPVIEW, (
WPARAM
)(BOOL)GroupsEnabled);
5882
nint retval = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
5901
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi);
5943
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
6394
return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
6419
int groupID = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)(-1), ref lvhi);
6465
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE);
6896
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, (
WPARAM
)0, (LPARAM)SystemInformation.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (4)
202
PInvokeCore.SendMessage(_owner, PInvoke.LVM_GETITEMW, (
WPARAM
)0, ref lvItem);
229
(
WPARAM
)(-1),
248
(
WPARAM
)nextSelected, (LPARAM)PInvoke.LVNI_SELECTED);
421
if (PInvokeCore.SendMessage(_owner, PInvoke.LVM_DELETEITEM, (
WPARAM
)index) == 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
61
(
WPARAM
)displayIndex,
109
(
WPARAM
)fidx,
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
43
(
WPARAM
)displayIndex,
132
(
WPARAM
)fidx,
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
424
(
WPARAM
)ID,
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
59
PInvokeCore.SendMessage(_owningListView, PInvoke.LVM_GETGROUPRECT, (
WPARAM
)nativeGroupId, ref groupRect);
168
(
WPARAM
)nativeGroupId,
174
if (PInvokeCore.SendMessage(_owningListView, PInvoke.LVM_HASGROUP, (
WPARAM
)_owningGroup.ID) == 0)
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (2)
57
PInvokeCore.SendMessage(_listView, PInvoke.LVM_GETINSERTMARKRECT, (
WPARAM
)0, ref bounds);
121
PInvokeCore.SendMessage(_listView, PInvoke.LVM_INSERTMARKHITTEST, (
WPARAM
)(&pt), ref lvInsertMark);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
880
PInvokeCore.SendMessage(lv, PInvoke.LVM_EDITLABELW, (
WPARAM
)Index);
1101
result = PInvokeCore.SendMessage(_listView, PInvoke.LVM_HASGROUP, (
WPARAM
)lvItem.iGroupId);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
241
PInvokeCore.PostMessage(ancestor, PInvokeCore.WM_SYSCOMMAND, (
WPARAM
)PInvoke.SC_KEYMENU, (LPARAM)(int)Keys.Space);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (10)
490
if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (
WPARAM
)value) == 0)
624
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (
WPARAM
)value);
1257
PInvokeCore.SendMessage(this, PInvoke.MCM_GETMONTHRANGE, (
WPARAM
)(int)flag, ref times[0]);
1363
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (
WPARAM
)_maxSelectionCount);
1371
PInvokeCore.SendMessage(this, PInvoke.MCM_SETTODAY, (
WPARAM
)0, ref systemTime);
1390
PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (
WPARAM
)0, (LPARAM)firstDay);
1395
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (
WPARAM
)_scrollChange);
1692
PInvokeCore.SendMessage(this, PInvoke.MCM_SETCOLOR, (
WPARAM
)(int)colorIndex, (LPARAM)value);
1744
if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETRANGE, (
WPARAM
)flags, ref times[0]) == 0)
1827
PInvokeCore.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (
WPARAM
)monthsCount, (LPARAM)arr);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (11)
255
PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (
WPARAM
)(BOOL)false, (LPARAM)_marqueeAnimationSpeed);
259
PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (
WPARAM
)(BOOL)true, (LPARAM)_marqueeAnimationSpeed);
295
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
333
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
423
PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (
WPARAM
)_step);
601
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
602
PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (
WPARAM
)_step);
603
PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (
WPARAM
)_value);
604
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
605
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
685
PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (
WPARAM
)_value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
594
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
607
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
141
(
WPARAM
)0,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2610
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (
WPARAM
)0, (LPARAM)e.Location);
3456
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (
WPARAM
)0, (LPARAM)editPoint);
3798
PInvokeCore.SendMessage(toolTip, PInvoke.TTM_ADJUSTRECT, (
WPARAM
)1, ref rect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
96
PInvokeCore.PostMessage(this, PInvokeCore.WM_CHAR, (
WPARAM
)keyChar);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (2)
97
(delegate* unmanaged[Stdcall]<int,
WPARAM
, LPARAM, LRESULT>)hook,
108
private unsafe LRESULT MouseHookProc(int nCode,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (26)
172
(
WPARAM
)(int)(value ? PInvoke.ECOOP_OR : PInvoke.ECOOP_XOR),
343
PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (
WPARAM
)(BOOL)(value));
578
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETTARGETDEVICE, (
WPARAM
)hdc, Pixel2Twip(value, true));
865
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref cf);
924
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref cf2);
1296
(
WPARAM
)(int)(value ? PInvoke.ECOOP_OR : PInvoke.ECOOP_XOR),
1391
return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (
WPARAM
)(>l));
1459
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETZOOM, (
WPARAM
)(&numerator), ref denominator);
1607
=> PInvokeCore.SendMessage(this, PInvokeCore.EM_CANPASTE, (
WPARAM
)clipFormat.Id) != 0;
1917
position = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_FINDTEXT, (
WPARAM
)(uint)findOptions, ref ft);
2135
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2274
PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)(&position), index);
2444
PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (
WPARAM
)(DetectUrls ? 1 : 0));
2455
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
2499
(
WPARAM
)(int)PInvoke.ECOOP_OR,
2589
PInvokeCore.SendMessage(this, PInvokeCore.EM_PASTESPECIAL, (
WPARAM
)clipFormat.Id);
2686
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETZOOM, (
WPARAM
)numerator, (LPARAM)denominator);
2717
return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref cf) != 0;
2725
return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)charRange, ref cf) != 0;
2772
(
WPARAM
)(selectionOnly ? PInvoke.SCF_SELECTION : PInvoke.SCF_ALL),
2917
PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMIN, (
WPARAM
)flags, ref es);
2936
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(-1));
3017
PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMOUT, (
WPARAM
)flags, ref es);
3053
int expectedLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (
WPARAM
)pGtl);
3073
int actualLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTEX, (
WPARAM
)pGt, (LPARAM)b);
3411
PInvokeCore.PostMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)(selEnd - 1), (LPARAM)selEnd);
System\Windows\Forms\Controls\TabControl\TabControl.cs (7)
692
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)value);
1127
PInvokeCore.SendMessage(this, PInvoke.TCM_GETITEMRECT, (
WPARAM
)index, ref rect);
1618
PInvokeCore.SendMessage(this, PInvoke.TCM_DELETEITEM, (
WPARAM
)index);
1654
PInvokeCore.SendMessage(this, PInvoke.TCM_SETTOOLTIPS, (
WPARAM
)toolTip.Handle);
1673
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)index);
2002
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)_lastSelection);
2162
return (int)PInvokeCore.SendMessage(this, msg, (
WPARAM
)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1099
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (
WPARAM
)pwdChar);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
359
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (
WPARAM
)value);
619
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (
WPARAM
)_passwordChar);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (14)
694
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(BOOL)value);
886
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETSEL, (
WPARAM
)(&startResult), ref end);
942
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETREADONLY, (
WPARAM
)(BOOL)value);
1022
PInvokeCore.SendMessage(this, PInvokeCore.EM_REPLACESEL, (
WPARAM
)(-1), text);
1026
PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (
WPARAM
)_maxLength);
1393
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(BOOL)true);
1603
public virtual int GetLineFromCharIndex(int index) => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEFROMCHAR, (
WPARAM
)index);
1615
int i = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)index);
1626
return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (
WPARAM
)lineNumber);
1632
public int GetFirstCharIndexOfCurrentLine() => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (
WPARAM
)(-1));
1755
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
1868
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
1997
PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (
WPARAM
)_maxLength);
2038
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMARGINS, (
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (4)
301
? (int)PInvokeCore.SendMessage(Owner, PInvokeCore.EM_LINEINDEX, (
WPARAM
)line)
405
(
WPARAM
)charactersHorizontal,
427
PInvokeCore.SendMessage(Owner, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
441
PInvokeCore.SendMessage(Owner, PInvokeCore.EM_GETRECT, (
WPARAM
)0, ref rectangle);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2659
(
WPARAM
)imageHdc,
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1984
PInvokeCore.SendMessage(activeWindow, PInvokeCore.WM_NCACTIVATE, (
WPARAM
)(BOOL)true, (LPARAM)(-1));
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (2)
68
(delegate* unmanaged[Stdcall]<int,
WPARAM
, LPARAM, LRESULT>)hook,
81
private unsafe LRESULT MessageHookProc(int nCode,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
783
PInvokeCore.PostMessage(_targetWindowHandle, PInvokeCore.WM_SYSCOMMAND, (
WPARAM
)(uint)_nativeMenuCommandID);
790
PInvokeCore.PostMessage(_targetWindowHandle, PInvokeCore.WM_COMMAND, (
WPARAM
)(uint)_nativeMenuCommandID);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (11)
440
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)true, (LPARAM)_maximum);
582
PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (
WPARAM
)value);
797
PInvokeCore.SendMessage(this, PInvoke.TBM_CLEARTICS, (
WPARAM
)1, (LPARAM)0);
864
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (
WPARAM
)(BOOL)false, (LPARAM)_minimum);
865
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)false, (LPARAM)_maximum);
868
PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (
WPARAM
)_tickFrequency);
875
PInvokeCore.SendMessage(this, PInvoke.TBM_SETPAGESIZE, (
WPARAM
)0, (LPARAM)_largeChange);
876
PInvokeCore.SendMessage(this, PInvoke.TBM_SETLINESIZE, (
WPARAM
)0, (LPARAM)_smallChange);
1063
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (
WPARAM
)(BOOL)false, (LPARAM)_minimum);
1064
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)true, (LPARAM)_maximum);
1122
PInvokeCore.SendMessage(this, PInvoke.TBM_SETPOS, (
WPARAM
)(BOOL)true, (LPARAM)reflectedValue);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (7)
705
(
WPARAM
)PInvoke.TVGN_NEXTVISIBLE,
863
(
WPARAM
)PInvoke.TVGN_PREVIOUSVISIBLE,
1473
PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (
WPARAM
)(uint)NM_TREEVIEW_ACTION.TVE_COLLAPSE, (LPARAM)Handle);
1592
PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (
WPARAM
)(BOOL)cancel);
1679
PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (
WPARAM
)(uint)NM_TREEVIEW_ACTION.TVE_EXPAND, (LPARAM)Handle);
1882
PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (
WPARAM
)(BOOL)false);
1907
PInvokeCore.SendMessage(tv, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Controls\TreeView\TreeView.cs (24)
206
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)Indent);
759
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)value);
817
PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (
WPARAM
)value);
1093
IntPtr hItem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (
WPARAM
)PInvoke.TVGN_CARET);
1120
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_CARET, (LPARAM)hnode);
1306
IntPtr hitem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (
WPARAM
)PInvoke.TVGN_FIRSTVISIBLE);
1322
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_FIRSTVISIBLE, (LPARAM)hnode);
1602
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
1605
PInvokeCore.PostMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
1609
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
1626
PInvokeCore.SendMessage(this, PInvoke.TVM_SETTOOLTIPS, (
WPARAM
)toolTip.Handle);
1917
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)_indent);
1922
PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (
WPARAM
)ItemHeight);
1992
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE, (LPARAM)newImageList.Handle);
2002
IntPtr handleOld = PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE, (LPARAM)handle);
2013
IntPtr handle = PInvokeCore.SendMessage(this, PInvoke.TVM_GETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE);
2019
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE);
2651
(
WPARAM
)(nint)PInvoke.TVS_EX_DOUBLEBUFFER,
2687
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE);
2932
PInvokeCore.SendMessage(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (
WPARAM
)(BOOL)true, ref bounds);
3064
PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (
WPARAM
)HWND, (LPARAM)PInvoke.GetMessagePos());
3116
PInvokeCore.PostMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE, (LPARAM)treeNode.Handle);
3129
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE);
3399
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)Indent);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
335
wParam = (
WPARAM
)char.ToUpper(charCode, CultureInfo.CurrentCulture),
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
312
WPARAM
wp,
320
WPARAM
wp,
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
191
PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (
WPARAM
)itemHeight);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (5)
24
private readonly unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> _functionPointer;
33
_functionPointer = (delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint>)(void*)Marshal.GetFunctionPointerForDelegate(_hookProc);
54
internal LRESULT HookProcInternal(HWND hWnd, uint msg,
WPARAM
wparam, LPARAM lparam)
57
private protected unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> HookProcFunctionPointer
117
private LRESULT OwnerWndProcInternal(HWND hWnd, uint msg,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (2)
498
PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETEXPANDED, (
WPARAM
)(BOOL)true, instance._initialDirectory);
504
PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETSELECTIONW, (
WPARAM
)(BOOL)true, instance.SelectedPath);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
313
PInvokeCore.SendMessage((HWND)hWnd, PInvokeCore.WM_CHOOSEFONT_GETLOGFONT, (
WPARAM
)0, ref logFont);
322
(
WPARAM
)index,
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (15)
273
WPARAM
wParam,
744
(
WPARAM
)(BOOL)marqueeProgressBar);
760
(
WPARAM
)(BOOL)enableMarquee,
797
(
WPARAM
)pos);
806
(
WPARAM
)(int)state);
813
(
WPARAM
)(BOOL)isChecked,
818
(
WPARAM
)buttonID,
823
(
WPARAM
)buttonID,
828
(
WPARAM
)radioButtonID,
840
(
WPARAM
)buttonID,
855
(
WPARAM
)radioButtonID);
869
SendTaskDialogMessage(TASKDIALOG_MESSAGES.TDM_SET_ELEMENT_TEXT, (
WPARAM
)(int)element, (LPARAM)textPtr);
884
SendTaskDialogMessage(TASKDIALOG_MESSAGES.TDM_UPDATE_ICON, (
WPARAM
)(int)element, (LPARAM)icon);
915
WPARAM
wParam,
1665
WPARAM
wParam,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
124
(
WPARAM
)0,
131
PInvokeCore.SendMessage(_tipWindow, PInvoke.TTM_SETDELAYTIME, (
WPARAM
)PInvoke.TTDT_INITIAL);
System\Windows\Forms\Form.cs (9)
2185
PInvokeCore.SendMessage(this, PInvokeCore.WM_SHOWWINDOW, (
WPARAM
)(BOOL)value);
2843
PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (
WPARAM
)HWND);
3429
PInvokeCore.SendMessage(TaskbarOwner, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
5154
PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (
WPARAM
)HWND);
6193
PInvokeCore.SendMessage(_ctlClient, PInvokeCore.WM_MDISETMENU, (
WPARAM
)dummyMenu.Value);
6456
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_SMALL, (LPARAM)_smallIcon.Handle);
6459
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
6463
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_SMALL);
6464
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_BIG);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
455
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (
WPARAM
)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
System\Windows\Forms\MDI\MDIClient.cs (2)
153
PInvokeCore.SendMessage(this, PInvokeCore.WM_MDITILE, (
WPARAM
)(uint)TILE_WINDOWS_HOW.MDITILE_VERTICAL);
156
PInvokeCore.SendMessage(this, PInvokeCore.WM_MDITILE, (
WPARAM
)(uint)TILE_WINDOWS_HOW.MDITILE_HORIZONTAL);
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
80
HICON hIcon = (HICON)PInvokeCore.SendMessage(GetSafeHandle(_target), PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
System\Windows\Forms\NativeWindow.cs (1)
340
private LRESULT Callback(HWND hWnd, uint msg,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\NativeWindow.WindowClass.cs (2)
42
public LRESULT Callback(HWND hwnd, uint msg,
WPARAM
wparam, LPARAM lparam)
158
windowClass.lpfnWndProc = (delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, LRESULT>)callback;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
1232
(
WPARAM
)(RightToLeft == RightToLeft.Yes ? (int)SCROLLBAR_COMMAND.SB_RIGHT : (int)SCROLLBAR_COMMAND.SB_LEFT),
System\Windows\Forms\SendKeys\SendKeys.cs (1)
264
private static unsafe LRESULT EmptyHookCallback(int nCode,
WPARAM
wparam, LPARAM lparam) => (LRESULT)0;
System\Windows\Forms\SendKeys\SendKeys.SendKeysHookProc.cs (1)
26
public static unsafe LRESULT Callback(int nCode,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\ToolTip\ToolTip.cs (10)
117
PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (
WPARAM
)(BOOL)value);
183
PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (
WPARAM
)_backColor);
252
PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (
WPARAM
)_foreColor);
771
PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (
WPARAM
)(BOOL)_active);
775
PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (
WPARAM
)BackColor);
780
PInvokeCore.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (
WPARAM
)ForeColor);
787
PInvokeCore.SendMessage(this, PInvoke.TTM_SETTITLEW, (
WPARAM
)(int)_toolTipIcon, title);
964
return (int)PInvokeCore.SendMessage(this, PInvoke.TTM_GETDELAYTIME, (
WPARAM
)type);
1181
PInvokeCore.SendMessage(this, PInvoke.TTM_SETDELAYTIME, (
WPARAM
)type, (LPARAM)time);
2073
PInvokeCore.SendMessage(this, PInvoke.TTM_ADJUSTRECT, (
WPARAM
)(BOOL)true, ref rect);
System\Windows\Forms\WindowSubclassHandler.cs (1)
265
WPARAM
wParam,
System.Windows.Forms.Design (27)
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
70
PInvokeCore.SendMessage(hwnd, PInvoke.TVM_SETEXTENDEDSTYLE, (
WPARAM
)0, (LPARAM)exstyle);
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (7)
68
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
74
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
80
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
86
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
92
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
98
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
134
(
WPARAM
)PARAM.FromLowHigh((int)MESSAGEBOX_RESULT.IDOK, 0),
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (2)
81
(delegate* unmanaged[Stdcall]<int,
WPARAM
, LPARAM, LRESULT>)hook,
91
private unsafe LRESULT MouseHookProc(int nCode,
WPARAM
wparam, LPARAM lparam)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
647
PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
833
PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Design\DesignerFrame.cs (2)
90
PInvokeCore.SendMessage(_designer, PInvokeCore.WM_NCACTIVATE, (
WPARAM
)(BOOL)focus);
208
PInvokeCore.SendMessage(_designerRegion, msg, (
WPARAM
)(int)wScrollNotify);
System\Windows\Forms\Design\DesignerUtils.cs (2)
446
(
WPARAM
)hDc,
854
(
WPARAM
)PInvoke.LVS_EX_DOUBLEBUFFER,
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1081
PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (
WPARAM
)(BOOL)false);
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
400
PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (
WPARAM
)(BOOL)true);
412
PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (
WPARAM
)(BOOL)false);
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
501
PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
535
PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
755
PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
803
PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
883
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
885
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
963
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
965
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
System.Windows.Forms.Primitives (31)
Microsoft\Office\IMsoComponent.cs (6)
35
internal delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint,
WPARAM
, LPARAM, BOOL> FDebugMessage_4;
50
private static BOOL FDebugMessage(IMsoComponent* @this, nint hInst, uint msg,
WPARAM
wParam, LPARAM lParam)
145
/// <inheritdoc cref="Interface.FDebugMessage(nint, uint,
WPARAM
, LPARAM)"/>
146
public BOOL FDebugMessage(nint hInst, uint msg,
WPARAM
wParam, LPARAM lParam)
149
return ((delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint,
WPARAM
, LPARAM, BOOL>)_lpVtbl[3])(
266
WPARAM
wParam,
Microsoft\Office\IMsoComponentManager.cs (4)
65
/// <inheritdoc cref="Interface.FDebugMessage(nint, uint,
WPARAM
, LPARAM)"/>
66
public BOOL FDebugMessage(nint dwReserved, uint msg,
WPARAM
wParam, LPARAM lParam)
69
return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nint, uint,
WPARAM
, LPARAM, BOOL>)_lpVtbl[4])
247
WPARAM
wParam,
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (1)
28
BOOL Interface.FDebugMessage(nint dwReserved, uint msg,
WPARAM
wParam, LPARAM lParam)
System\Windows\Forms\AccessibilityExtensions.cs (2)
11
/// <inheritdoc cref="PInvoke.LresultFromObject(Guid*,
WPARAM
, IUnknown*)"/>
12
internal static LRESULT GetLRESULT(this IAccessible accessible,
WPARAM
wparam)
System\Windows\Forms\Internals\MessageDecoder.cs (1)
19
private static string ToString(HWND hwnd, MessageId messageId,
WPARAM
wparam, LPARAM lparam, LRESULT result)
System\Windows\Forms\Message.cs (4)
22
internal
WPARAM
WParamInternal;
94
internal static Message Create(HWND hWnd, uint msg,
WPARAM
wparam, LPARAM lparam)
97
internal static Message Create(HWND hWnd, MessageId msg,
WPARAM
wparam, LPARAM lparam)
106
WParamInternal = (
WPARAM
)(nuint)wparam,
Windows\Win32\HOOKPROC.cs (1)
6
internal delegate LRESULT HOOKPROC(int nCode,
WPARAM
wParam, LPARAM lParam);
Windows\Win32\PInvoke.SendMessageCallback.cs (1)
15
WPARAM
wParam = default,
Windows\Win32\PInvoke.UiaReturnRawElementProvider.cs (2)
10
/// <inheritdoc cref="UiaReturnRawElementProvider(HWND,
WPARAM
, LPARAM, IRawElementProviderSimple*)"/>
13
WPARAM
wParam,
Windows\Win32\UI\Controls\Dialogs\CHOOSECOLORW.cs (1)
146
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (1)
142
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (2)
187
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnPageSetupHook;
203
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnPagePaintHook;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_32.cs (2)
42
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnPrintHook;
44
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnSetupHook;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_64.cs (2)
255
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnPrintHook;
270
public unsafe delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, nuint> lpfnSetupHook;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47
LRESULT result = PInvokeCore.SendMessage(sender, message, (
WPARAM
)(BOOL)state, (LPARAM)i);
System.Windows.Forms.Primitives.Tests (1)
Interop\User32\GetWindowTextTests.cs (1)
57
protected override LRESULT WNDPROC(HWND hWnd, uint msg,
WPARAM
wParam, LPARAM lParam)
System.Windows.Forms.Primitives.TestUtilities (2)
Win32\WindowClass.cs (2)
93
lpfnWndProc = (delegate* unmanaged[Stdcall]<HWND, uint,
WPARAM
, LPARAM, LRESULT>)Marshal.GetFunctionPointerForDelegate(_windowProcedure),
217
protected virtual LRESULT WNDPROC(HWND hWnd, uint msg,
WPARAM
wParam, LPARAM lParam)
System.Windows.Forms.Tests (73)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
344
PInvokeCore.SendMessage(comboBox, PInvoke.CB_SETTOPINDEX, (
WPARAM
)(itemsCount - 1));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
297
PInvokeCore.SendMessage(list, PInvoke.LVM_GETGROUPRECT, (
WPARAM
)listGroup.ID, ref groupRect);
333
PInvokeCore.SendMessage(listView, PInvoke.LVM_GETGROUPRECT, (
WPARAM
)group.ID, ref groupRect);
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
347
BOOL IMsoComponent.Interface.FDebugMessage(nint hInst, uint msg,
WPARAM
wParam, LPARAM lParam)
System\Windows\Forms\ColumnHeaderTests.cs (1)
1206
Assert.Equal(1, (int)PInvokeCore.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, (
WPARAM
)columnIndex, ref column));
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
1157
int expectedLine = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_LINEFROMCHAR, (
WPARAM
)charIndex);
System\Windows\Forms\ControlTests.Properties.cs (2)
10530
PInvokeCore.SendMessage(control, PInvokeCore.WM_UPDATEUISTATE, (
WPARAM
)wParam);
10589
PInvokeCore.SendMessage(control, PInvokeCore.WM_UPDATEUISTATE, (
WPARAM
)wParam);
System\Windows\Forms\FormTests.cs (12)
199
HICON hSmallIcon = (HICON)PInvokeCore.SendMessage(form, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
202
HICON hLargeIcon = (HICON)PInvokeCore.SendMessage(form, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_BIG);
991
PInvokeCore.SendMessage(form, PInvokeCore.WM_SYSCOMMAND, (
WPARAM
)PInvoke.SC_MAXIMIZE);
1000
PInvokeCore.SendMessage(form, PInvokeCore.WM_SYSCOMMAND, (
WPARAM
)PInvoke.SC_RESTORE);
1082
HICON hSmallIcon = (HICON)PInvokeCore.SendMessage(form, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
1083
HICON hLargeIcon = (HICON)PInvokeCore.SendMessage(form, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_BIG);
1283
HICON hSmallIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
1285
HICON hLargeIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_BIG);
1290
hSmallIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
1292
hLargeIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_BIG);
1297
hSmallIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_SMALL);
1299
hLargeIcon = (HICON)PInvokeCore.SendMessage(control, PInvokeCore.WM_GETICON, (
WPARAM
)PInvoke.ICON_BIG);
System\Windows\Forms\ListBoxTests.cs (8)
2661
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
2667
Assert.Equal(2, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
2673
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
3178
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
3185
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
3191
Assert.Equal(2, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
3197
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.LB_GETSELITEMS, (
WPARAM
)buffer.Length, ref buffer[0]));
3327
PInvokeCore.SendMessage(control, MessageId.WM_REFLECT | PInvokeCore.WM_COMMAND,
WPARAM
.MAKEWPARAM(0, (int)PInvoke.LBN_SELCHANGE));
System\Windows\Forms\ListViewGroupTests.cs (2)
222
PInvokeCore.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, groupImageList.Handle));
362
PInvokeCore.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, groupImageList.Handle));
System\Windows\Forms\ListViewTests.cs (2)
5456
PInvokeCore.SendMessage(listView, PInvokeCore.WM_TIMER, (
WPARAM
)(nint)listView.TestAccessor().Dynamic.LVLABELEDITTIMER);
5491
PInvokeCore.SendMessage(listView, PInvokeCore.WM_KEYUP, (
WPARAM
)keyCode, (LPARAM)lParam);
System\Windows\Forms\MonthCalendarTests.cs (5)
1089
Assert.Equal(0x785634, (int)PInvokeCore.SendMessage(control, PInvoke.MCM_GETCOLOR, (
WPARAM
)(int)PInvoke.MCSC_TEXT));
1100
Assert.Equal(0x563412, (int)PInvokeCore.SendMessage(control, PInvoke.MCM_GETCOLOR, (
WPARAM
)(int)PInvoke.MCSC_MONTHBK));
1111
Assert.Equal(0x785634, (int)PInvokeCore.SendMessage(control, PInvoke.MCM_GETCOLOR, (
WPARAM
)(int)PInvoke.MCSC_TITLEBK));
1122
Assert.Equal(0x785634, (int)PInvokeCore.SendMessage(control, PInvoke.MCM_GETCOLOR, (
WPARAM
)(int)PInvoke.MCSC_TITLETEXT));
1133
Assert.Equal(0x785634, (int)PInvokeCore.SendMessage(control, PInvoke.MCM_GETCOLOR, (
WPARAM
)(int)PInvoke.MCSC_TRAILINGTEXT));
System\Windows\Forms\RichTextBoxTests.cs (22)
567
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETOPTIONS, (
WPARAM
)(int)PInvoke.ECOOP_OR, (LPARAM)(int)PInvoke.ECO_AUTOWORDSELECTION);
1609
result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_ALL, ref format);
1626
result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_ALL, ref format1);
1752
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_ALL, ref format));
1767
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_ALL, ref format));
1776
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_ALL, ref format));
3783
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
3978
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
4240
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
4434
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
4623
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
4938
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
5158
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
5349
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
5551
IntPtr result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETSEL, (
WPARAM
)(&selectionStart), (LPARAM)(&selectionEnd));
5747
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
5933
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
6141
IntPtr result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETSEL, (
WPARAM
)(&selectionStart), (LPARAM)(&selectionEnd));
6380
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
6388
Assert.NotEqual(0, (int)PInvokeCore.SendMessage(control, PInvokeCore.EM_GETPARAFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format));
6581
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETOPTIONS, (
WPARAM
)(int)PInvoke.ECOOP_OR, (LPARAM)(nint)PInvoke.ECO_SELECTIONBAR);
10532
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETMARGINS, (
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN), LPARAM.MAKELPARAM(1, 2));
TextBoxBaseTests.cs (8)
1821
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(BOOL)true);
2323
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETREADONLY, (
WPARAM
)(BOOL)true);
2919
(
WPARAM
)(&selectionStart),
3096
(
WPARAM
)(&selectionStart),
4162
(
WPARAM
)(&selectionStart),
6304
(
WPARAM
)(&selectionStart),
6440
(
WPARAM
)(&selectionStart),
7652
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN),
TextBoxTests.cs (6)
422
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
424
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
426
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
441
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
443
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
445
PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (
WPARAM
)(BOOL)false);
System.Windows.Forms.TestUtilities (6)
ControlExtensions.cs (1)
20
PInvokeCore.SendMessage(control, PInvokeCore.WM_PRINT, (
WPARAM
)emf.HDC, (LPARAM)(uint)prf);
DialogHostForm.cs (1)
36
PInvokeCore.SendMessage(handle, PInvokeCore.WM_COMMAND, (
WPARAM
)(nint)MESSAGEBOX_RESULT.IDOK);
KeyboardSimulator.cs (3)
15
PInvokeCore.SendMessage(control, PInvokeCore.WM_KEYDOWN, (
WPARAM
)keyCode, lParam);
21
PInvokeCore.SendMessage(control, PInvokeCore.WM_KEYDOWN, (
WPARAM
)keyCode, lParam);
22
PInvokeCore.SendMessage(control, PInvokeCore.WM_KEYUP, (
WPARAM
)keyCode, lParam);
SystemEventsHelper.cs (1)
34
WPARAM
wParam;
System.Windows.Forms.UI.IntegrationTests (3)
Dpi\DpiMessageHelper.cs (2)
11
WPARAM
wParam =
WPARAM
.MAKEWPARAM(newDpi, newDpi);
RichTextBoxTests.cs (1)
206
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref format);
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
53
(
WPARAM
)PInvoke.SCF_SELECTION,