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)
1592
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (
WPARAM
)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
3379
(
WPARAM
)(actionMask | PInvoke.UIS_SET));
3425
(
WPARAM
)(actionMask | (int)PInvoke.UIS_SET));
4391
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
5021
(
WPARAM
)hDc,
5086
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
7189
Message m = Message.Create(HWND, PInvokeCore.WM_PRINTCLIENT, (
WPARAM
)hdc, (LPARAM)flags);
7496
PInvokeCore.SendMessage(this, PInvokeCore.WM_HSCROLL,
WPARAM
.MAKEWPARAM((int)SCROLLBAR_COMMAND.SB_THUMBPOSITION, si.nPos));
8861
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (
WPARAM
)hDC, (LPARAM)lParam);
8878
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (
WPARAM
)dcWrapper.HDC, (LPARAM)lParam);
8926
WPARAM
newWParam = 0;
8958
newWParam = kpe.KeyChar == preEventCharacter ? m.WParamInternal : (
WPARAM
)kpe.KeyChar;
9106
(
WPARAM
)((int)PInvoke.UIS_CLEAR | ((int)toClear << 16)));
10717
private void SetWindowFont() => PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFONT, (
WPARAM
)FontHandle, (LPARAM)(BOOL)false);
11681
PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (
WPARAM
)HWND, (LPARAM)screenLocation);
11818
(
WPARAM
)handle, m.LParamInternal);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1192
PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (
WPARAM
)(BOOL)true);
1220
PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (
WPARAM
)(BOOL)false);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
206
PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (
WPARAM
)(int)_checkState);
496
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);
347
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)
455
PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)value);
503
PInvokeCore.SendMessage(this, PInvoke.CB_SHOWDROPDOWN, (
WPARAM
)(value ? -1 : 0));
712
PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (
WPARAM
)value);
894
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)value);
970
PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (
WPARAM
)(-1), value ?? string.Empty);
988
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (
WPARAM
)(&start), (LPARAM)(&end));
1009
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (
WPARAM
)(&value));
1590
(
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
1978
int h = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (
WPARAM
)index);
2171
int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_ADDSTRING, (
WPARAM
)0, GetItemText(item));
2200
int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXTLEN, (
WPARAM
)index);
2209
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXT, (
WPARAM
)index, (LPARAM)b);
2222
int insertIndex = (int)PInvokeCore.SendMessage(this, PInvoke.CB_INSERTSTRING, (
WPARAM
)index, GetItemText(item));
2249
PInvokeCore.SendMessage(this, PInvoke.CB_DELETESTRING, (
WPARAM
)index);
2284
PInvokeCore.SendMessage(this, PInvoke.CB_LIMITTEXT, (
WPARAM
)MaxLength);
2313
PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_SETMARGINS, (
WPARAM
)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
2319
PInvokeCore.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (
WPARAM
)dropDownWidth);
2370
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)_selectedIndex);
3244
PInvokeCore.SendMessage(this, PInvoke.CB_SETEDITSEL, (
WPARAM
)0, LPARAM.MAKELPARAM(start, end));
3288
PInvokeCore.SendMessage(this, PInvoke.CB_SETCURSEL, (
WPARAM
)DataManager.Position);
3386
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)(-1), (LPARAM)ItemHeight);
3391
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)(-1), (LPARAM)ItemHeight);
3395
int original = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (
WPARAM
)i);
3400
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (
WPARAM
)i, (LPARAM)mievent.ItemHeight);
3798
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);
894
PInvokeCore.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (
WPARAM
)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1278
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (
WPARAM
)(int)colorIndex, (LPARAM)value);
1289
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCFONT, (
WPARAM
)CalendarFontHandle, (LPARAM)(-1));
1319
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);
763
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);
1120
PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (
WPARAM
)value);
1423
int height = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETITEMHEIGHT, (
WPARAM
)index);
1478
int selection = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (
WPARAM
)index);
1565
int maxLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXTLEN, (
WPARAM
)index);
1574
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXT, (
WPARAM
)index, (LPARAM)b);
1614
bool selected = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETSEL, (
WPARAM
)index) > 0;
1615
PInvokeCore.SendMessage(this, PInvoke.LB_DELETESTRING, (
WPARAM
)index);
1637
PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (
WPARAM
)(value ? index : -1));
1641
PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (
WPARAM
)(BOOL)value, (LPARAM)index);
1680
PInvokeCore.SendMessage(this, PInvoke.LB_GETSELITEMS, (
WPARAM
)count, (LPARAM)pResult);
1745
PInvokeCore.SendMessage(this, PInvoke.LB_SETLOCALE, (
WPARAM
)PInvokeCore.GetThreadLocale());
1749
PInvokeCore.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (
WPARAM
)_columnWidth);
1754
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (
WPARAM
)0, (LPARAM)ItemHeight);
1759
PInvokeCore.SendMessage(this, PInvoke.LB_SETTOPINDEX, (
WPARAM
)_topIndex);
1770
PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (
WPARAM
)wpar, (LPARAM)pOffsets);
2116
PInvokeCore.SendMessage(this, PInvoke.LB_SETCURSEL, (
WPARAM
)DataManager.Position);
2255
PInvokeCore.SendMessage(this, PInvoke.LB_SETHORIZONTALEXTENT, (
WPARAM
)width);
2312
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);
813
(
WPARAM
)(-1),
841
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
957
(
WPARAM
)PInvoke.LVSIL_GROUPHEADER,
1221
(
WPARAM
)PInvoke.LVSIL_NORMAL,
1457
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)(value?.Handle ?? 0));
1564
(
WPARAM
)PInvoke.LVSIL_STATE,
1580
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE);
1601
(
WPARAM
)PInvoke.LVSIL_STATE,
1661
PInvokeCore.SendMessage(this, PInvoke.LVM_GETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
1691
nint result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
1835
PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (
WPARAM
)(int)_viewStyle);
1891
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)_virtualListSize);
2210
&& PInvokeCore.SendMessage(hwnd, PInvoke.HDM_HITTEST, (
WPARAM
)0, ref lvhi) != -1 && lvhi.iItem > -1)
2260
PInvokeCore.PostMessage(this, PInvoke.LVM_ARRANGE, (
WPARAM
)(int)value);
2396
PInvokeCore.SendMessage(this, PInvokeCore.WM_TIMER, (
WPARAM
)LVLABELEDITTIMER);
3177
if (PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (
WPARAM
)DefaultGroup.ID) == 0)
3196
PInvokeCore.SendMessage(this, PInvoke.LVM_ENSUREVISIBLE, (
WPARAM
)index);
3318
(
WPARAM
)(startIndex - 1),
3366
PInvokeCore.SendMessage(this, PInvoke.LVM_SETEXTENDEDLISTVIEWSTYLE, (
WPARAM
)PInvoke.LVS_EX_CHECKBOXES);
3370
(
WPARAM
)PInvoke.LVS_EX_CHECKBOXES,
3421
displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (
WPARAM
)(lastIndex - 1), ref info);
3426
displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_FINDITEMW, (
WPARAM
)(-1) /* beginning */, ref info);
3486
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
3535
int index = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi);
3551
PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMPOSITION, (
WPARAM
)index, ref position);
3568
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (
WPARAM
)index, (LPARAM)(uint)mask);
3597
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (
WPARAM
)index, ref itemrect) == 0
3626
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMRECT, (
WPARAM
)index, ref itemrect) == 0
3674
return PInvokeCore.SendMessage(this, PInvoke.LVM_GETSUBITEMRECT, (
WPARAM
)itemIndex, ref itemrect) == 0
3705
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, handle);
3723
? (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi)
3724
: (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
3930
return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_INSERTCOLUMNW, (
WPARAM
)index, ref lvColumn);
3975
PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMW, (
WPARAM
)0, ref lvItem);
4118
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)_itemCount);
4147
result = PInvokeCore.SendMessage(this, PInvoke.LVM_HASGROUP, (
WPARAM
)lvItem.iGroupId);
4193
(
WPARAM
)0,
4305
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_NORMAL, (LPARAM)handle);
4514
PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (
WPARAM
)(-1));
4536
PInvokeCore.SendMessage(this, PInvoke.CCM_SETVERSION, (
WPARAM
)5);
4542
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
4543
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
4549
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (
WPARAM
)0, (LPARAM)PInvokeCore.CLR_NONE);
4565
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCALLBACKMASK, (
WPARAM
)(uint)callbackMask);
4570
PInvokeCore.SendMessage(this, PInvoke.LVM_SETVIEW, (
WPARAM
)(uint)_viewStyle);
4626
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (
WPARAM
)VirtualListSize);
4685
(
WPARAM
)exMask,
4698
(
WPARAM
)0,
4925
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
4929
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (
WPARAM
)0, (LPARAM)PInvokeCore.CLR_NONE);
4952
PInvokeCore.SendMessage(headerWindow, PInvoke.HDM_LAYOUT, (
WPARAM
)0, ref hd);
4987
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)c);
4994
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (
WPARAM
)0, (LPARAM)c);
5000
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.Handle);
5005
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.Handle);
5010
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
5015
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.Handle);
5039
int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_REDRAWITEMS, (
WPARAM
)startIndex, (LPARAM)endIndex);
5147
PInvokeCore.SendMessage(this, PInvoke.LVM_REMOVEGROUP, (
WPARAM
)group.ID);
5153
PInvokeCore.SendMessage(this, PInvoke.LVM_SCROLL, (
WPARAM
)0, (LPARAM)scrollY);
5194
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (
WPARAM
)0, ref backgroundImage);
5275
result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (
WPARAM
)ch.Index, ref lvColumn);
5340
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (
WPARAM
)columnIndex, LPARAM.MAKELPARAM(width, 0));
5353
(
WPARAM
)columnIndex,
5363
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (
WPARAM
)index, LPARAM.MAKELPARAM(width, 0));
5384
(
WPARAM
)orderedColumns.Length,
5443
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (
WPARAM
)0, ref lvItem);
5463
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMW, (
WPARAM
)0, ref lvItem);
5479
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMPOSITION32, (
WPARAM
)index, ref pt);
5499
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMSTATE, (
WPARAM
)index, ref lvItem);
5536
PInvokeCore.SendMessage(this, PInvoke.LVM_SETITEMTEXTW, (
WPARAM
)itemIndex, ref lvItem);
5552
PInvokeCore.SendMessage(this, PInvoke.LVM_SETSELECTIONMARK, (
WPARAM
)0, itemIndex);
5563
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_SMALL, (LPARAM)handle);
5583
PInvokeCore.SendMessage(this, PInvoke.LVM_SORTITEMS, (
WPARAM
)0, (LPARAM)callbackPointer);
5596
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE, (LPARAM)handle);
5638
PInvokeCore.SendMessage(this, PInvoke.LVM_UPDATE, (
WPARAM
)(-1));
5735
(
WPARAM
)exMask,
5843
return PInvokeCore.SendMessage(this, msg, (
WPARAM
)lParam, ref lvgroup);
5852
int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_ENABLEGROUPVIEW, (
WPARAM
)(BOOL)GroupsEnabled);
5873
nint retval = PInvokeCore.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (
WPARAM
)0, ref tileViewInfo);
5892
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (
WPARAM
)0, ref lvhi);
5934
int displayIndex = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
6384
return (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)0, ref lvhi);
6409
int groupID = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_HITTEST, (
WPARAM
)(-1), ref lvhi);
6455
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (
WPARAM
)PInvoke.LVSIL_STATE);
6883
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)
484
if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (
WPARAM
)value) == 0)
618
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (
WPARAM
)value);
1251
PInvokeCore.SendMessage(this, PInvoke.MCM_GETMONTHRANGE, (
WPARAM
)(int)flag, ref times[0]);
1357
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (
WPARAM
)_maxSelectionCount);
1365
PInvokeCore.SendMessage(this, PInvoke.MCM_SETTODAY, (
WPARAM
)0, ref systemTime);
1384
PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (
WPARAM
)0, (LPARAM)firstDay);
1389
PInvokeCore.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (
WPARAM
)_scrollChange);
1686
PInvokeCore.SendMessage(this, PInvoke.MCM_SETCOLOR, (
WPARAM
)(int)colorIndex, (LPARAM)value);
1738
if (PInvokeCore.SendMessage(this, PInvoke.MCM_SETRANGE, (
WPARAM
)flags, ref times[0]) == 0)
1821
PInvokeCore.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (
WPARAM
)monthsCount, (LPARAM)arr);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (11)
252
PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (
WPARAM
)(BOOL)false, (LPARAM)_marqueeAnimationSpeed);
256
PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (
WPARAM
)(BOOL)true, (LPARAM)_marqueeAnimationSpeed);
292
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
330
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
420
PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (
WPARAM
)_step);
598
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (
WPARAM
)_minimum, (LPARAM)_maximum);
599
PInvokeCore.SendMessage(this, PInvoke.PBM_SETSTEP, (
WPARAM
)_step);
600
PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (
WPARAM
)_value);
601
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
602
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (
WPARAM
)0, (LPARAM)ForeColor);
682
PInvokeCore.SendMessage(this, PInvoke.PBM_SETPOS, (
WPARAM
)_value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
596
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
609
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)
2633
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (
WPARAM
)0, (LPARAM)e.Location);
3479
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (
WPARAM
)0, (LPARAM)editPoint);
3821
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),
1386
return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (
WPARAM
)(>l));
1454
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETZOOM, (
WPARAM
)(&numerator), ref denominator);
1598
=> PInvokeCore.SendMessage(this, PInvokeCore.EM_CANPASTE, (
WPARAM
)clipFormat.Id) != 0;
1908
position = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_FINDTEXT, (
WPARAM
)(uint)findOptions, ref ft);
2126
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETCHARFORMAT, (
WPARAM
)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2265
PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)(&position), index);
2435
PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (
WPARAM
)(DetectUrls ? 1 : 0));
2446
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, (
WPARAM
)0, (LPARAM)BackColor);
2490
(
WPARAM
)(int)PInvoke.ECOOP_OR,
2580
PInvokeCore.SendMessage(this, PInvokeCore.EM_PASTESPECIAL, (
WPARAM
)clipFormat.Id);
2677
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETZOOM, (
WPARAM
)numerator, (LPARAM)denominator);
2703
return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)PInvoke.SCF_SELECTION, ref cf) != 0;
2711
return PInvokeCore.SendMessage(this, PInvokeCore.EM_SETCHARFORMAT, (
WPARAM
)charRange, ref cf) != 0;
2758
(
WPARAM
)(selectionOnly ? PInvoke.SCF_SELECTION : PInvoke.SCF_ALL),
2898
PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMIN, (
WPARAM
)flags, ref es);
2917
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(-1));
2998
PInvokeCore.SendMessage(this, PInvokeCore.EM_STREAMOUT, (
WPARAM
)flags, ref es);
3034
int expectedLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTLENGTHEX, (
WPARAM
)pGtl);
3054
int actualLength = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_GETTEXTEX, (
WPARAM
)pGt, (LPARAM)b);
3392
PInvokeCore.PostMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)(selEnd - 1), (LPARAM)selEnd);
System\Windows\Forms\Controls\TabControl\TabControl.cs (7)
690
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)value);
1125
PInvokeCore.SendMessage(this, PInvoke.TCM_GETITEMRECT, (
WPARAM
)index, ref rect);
1614
PInvokeCore.SendMessage(this, PInvoke.TCM_DELETEITEM, (
WPARAM
)index);
1650
PInvokeCore.SendMessage(this, PInvoke.TCM_SETTOOLTIPS, (
WPARAM
)toolTip.Handle);
1669
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)index);
1998
PInvokeCore.SendMessage(this, PInvoke.TCM_SETCURSEL, (
WPARAM
)_lastSelection);
2158
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);
616
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETPASSWORDCHAR, (
WPARAM
)_passwordChar);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (14)
689
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(BOOL)value);
881
PInvokeCore.SendMessage(this, PInvokeCore.EM_GETSEL, (
WPARAM
)(&startResult), ref end);
937
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETREADONLY, (
WPARAM
)(BOOL)value);
1015
PInvokeCore.SendMessage(this, PInvokeCore.EM_REPLACESEL, (
WPARAM
)(-1), text);
1019
PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (
WPARAM
)_maxLength);
1386
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (
WPARAM
)(BOOL)true);
1596
public virtual int GetLineFromCharIndex(int index) => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEFROMCHAR, (
WPARAM
)index);
1608
int i = (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_POSFROMCHAR, (
WPARAM
)index);
1619
return (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (
WPARAM
)lineNumber);
1625
public int GetFirstCharIndexOfCurrentLine() => (int)PInvokeCore.SendMessage(this, PInvokeCore.EM_LINEINDEX, (
WPARAM
)(-1));
1748
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
1861
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (
WPARAM
)start, (LPARAM)end);
1990
PInvokeCore.SendMessage(this, PInvokeCore.EM_LIMITTEXT, (
WPARAM
)_maxLength);
2031
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)
438
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)true, (LPARAM)_maximum);
580
PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (
WPARAM
)value);
795
PInvokeCore.SendMessage(this, PInvoke.TBM_CLEARTICS, (
WPARAM
)1, (LPARAM)0);
862
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (
WPARAM
)(BOOL)false, (LPARAM)_minimum);
863
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)false, (LPARAM)_maximum);
866
PInvokeCore.SendMessage(this, PInvoke.TBM_SETTICFREQ, (
WPARAM
)_tickFrequency);
873
PInvokeCore.SendMessage(this, PInvoke.TBM_SETPAGESIZE, (
WPARAM
)0, (LPARAM)_largeChange);
874
PInvokeCore.SendMessage(this, PInvoke.TBM_SETLINESIZE, (
WPARAM
)0, (LPARAM)_smallChange);
1061
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (
WPARAM
)(BOOL)false, (LPARAM)_minimum);
1062
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (
WPARAM
)(BOOL)true, (LPARAM)_maximum);
1120
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);
756
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)value);
814
PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (
WPARAM
)value);
1090
IntPtr hItem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (
WPARAM
)PInvoke.TVGN_CARET);
1117
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_CARET, (LPARAM)hnode);
1303
IntPtr hitem = PInvokeCore.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (
WPARAM
)PInvoke.TVGN_FIRSTVISIBLE);
1319
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_FIRSTVISIBLE, (LPARAM)hnode);
1599
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
1602
PInvokeCore.PostMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
1606
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
1623
PInvokeCore.SendMessage(this, PInvoke.TVM_SETTOOLTIPS, (
WPARAM
)toolTip.Handle);
1913
PInvokeCore.SendMessage(this, PInvoke.TVM_SETINDENT, (
WPARAM
)_indent);
1918
PInvokeCore.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (
WPARAM
)ItemHeight);
1988
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE, (LPARAM)newImageList.Handle);
1998
IntPtr handleOld = PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE, (LPARAM)handle);
2009
IntPtr handle = PInvokeCore.SendMessage(this, PInvoke.TVM_GETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE);
2015
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (
WPARAM
)PInvoke.TVSIL_STATE);
2638
(
WPARAM
)(nint)PInvoke.TVS_EX_DOUBLEBUFFER,
2674
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE);
2919
PInvokeCore.SendMessage(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (
WPARAM
)(BOOL)true, ref bounds);
3051
PInvokeCore.SendMessage(this, PInvokeCore.WM_CONTEXTMENU, (
WPARAM
)HWND, (LPARAM)PInvoke.GetMessagePos());
3103
PInvokeCore.PostMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE, (LPARAM)treeNode.Handle);
3116
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (
WPARAM
)PInvoke.TVGN_DROPHILITE);
3386
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)
272
WPARAM
wParam,
740
(
WPARAM
)(BOOL)marqueeProgressBar);
756
(
WPARAM
)(BOOL)enableMarquee,
793
(
WPARAM
)pos);
802
(
WPARAM
)(int)state);
809
(
WPARAM
)(BOOL)isChecked,
814
(
WPARAM
)buttonID,
819
(
WPARAM
)buttonID,
824
(
WPARAM
)radioButtonID,
836
(
WPARAM
)buttonID,
851
(
WPARAM
)radioButtonID);
865
SendTaskDialogMessage(TASKDIALOG_MESSAGES.TDM_SET_ELEMENT_TEXT, (
WPARAM
)(int)element, (LPARAM)textPtr);
880
SendTaskDialogMessage(TASKDIALOG_MESSAGES.TDM_UPDATE_ICON, (
WPARAM
)(int)element, (LPARAM)icon);
911
WPARAM
wParam,
1661
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)
2184
PInvokeCore.SendMessage(this, PInvokeCore.WM_SHOWWINDOW, (
WPARAM
)(BOOL)value);
2828
PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (
WPARAM
)HWND);
3414
PInvokeCore.SendMessage(TaskbarOwner, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
5134
PInvokeCore.SendMessage(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (
WPARAM
)HWND);
6201
PInvokeCore.SendMessage(_ctlClient, PInvokeCore.WM_MDISETMENU, (
WPARAM
)dummyMenu.Value);
6468
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_SMALL, (LPARAM)_smallIcon.Handle);
6475
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
6479
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETICON, (
WPARAM
)PInvoke.ICON_SMALL);
6480
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)
151
PInvokeCore.SendMessage(this, PInvokeCore.WM_MDITILE, (
WPARAM
)(uint)TILE_WINDOWS_HOW.MDITILE_VERTICAL);
154
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)
1230
(
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)
1054
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)
880
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
882
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)true);
960
PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (
WPARAM
)(BOOL)false);
962
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,