276 references to LPARAM
System.Private.Windows.Core (40)
Windows\Win32\Foundation\LPARAM.cs (17)
10
public static unsafe implicit operator void*(
LPARAM
value) => (void*)value.Value;
11
public static unsafe implicit operator
LPARAM
(void* value) => new((nint)value);
13
public static explicit operator
LPARAM
(BOOL value) => new((nint)value);
15
public static implicit operator
LPARAM
(int value) => new(value);
17
public static explicit operator int(
LPARAM
value) => (int)value.Value;
18
public static explicit operator uint(
LPARAM
value) => (uint)(int)value.Value;
19
public static explicit operator nuint(
LPARAM
value) => (nuint)value.Value;
20
public static explicit operator
LPARAM
(uint value) => new((nint)(nuint)value);
22
public static explicit operator HWND(
LPARAM
value) => (HWND)value.Value;
24
public static unsafe explicit operator
LPARAM
(HWND value) => (
LPARAM
)value.Value;
26
public static explicit operator
LPARAM
(Color value) => (
LPARAM
)ColorTranslator.ToWin32(value);
27
public static explicit operator Point(
LPARAM
value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
28
public static explicit operator
LPARAM
(Point value) => MAKELPARAM(value.X, value.Y);
41
public static
LPARAM
MAKELPARAM(int low, int high) => (
LPARAM
)(uint)((int)(((ushort)(((nuint)low) & 0xffff))
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.EnumChildWindows.cs (2)
22
return EnumChildWindows(hwndParent.Handle, &EnumChildWindowsNativeCallback, (
LPARAM
)(nint)gcHandle);
32
private static BOOL EnumChildWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (2)
18
return EnumDisplayMonitors(default, (RECT*)null, &EnumDisplayMonitorsNativeCallback, (
LPARAM
)(nint)gcHandle);
27
private static BOOL EnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (2)
24
return EnumThreadWindows(GetCurrentThreadId(), &HandleEnumThreadWindowsNativeCallback, (
LPARAM
)(nint)gcHandle);
33
private static BOOL HandleEnumThreadWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumWindows.cs (2)
21
return EnumWindows(&EnumWindowsNativeCallback, (
LPARAM
)(nint)gcHandle);
30
private static BOOL EnumWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.PostMessage.cs (2)
8
/// <inheritdoc cref="PostMessage(HWND, uint, WPARAM,
LPARAM
)"/>
13
LPARAM
lParam = default)
Windows\Win32\PInvokeCore.SendMessage.cs (10)
8
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
13
LPARAM
lParam = default) where T : IHandle<HWND>
20
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
25
LPARAM
lParam = default) where THwnd : IHandle<HWND> where TWParam : IHandle<HWND>
32
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
41
return SendMessage(hWnd, Msg, wParam, (
LPARAM
)c);
45
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
56
return SendMessage(hWnd, Msg, wParam, (
LPARAM
)l);
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.Windows.Forms (165)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
326
PInvokeCore.SendMessage(_owningChildEdit, PInvokeCore.EM_SETSEL, (WPARAM)start, (
LPARAM
)end);
System\Windows\Forms\ActiveX\AxHost.cs (2)
1764
lParam =
LPARAM
.MAKELPARAM(
3213
(delegate* unmanaged[Stdcall]<HWND, uint, WPARAM,
LPARAM
, LRESULT>)wndProc,
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
105
LPARAM
lp,
113
LPARAM
lp,
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
476
PInvokeCore.SendMessage(_control, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (
LPARAM
)flags);
System\Windows\Forms\Application.ComponentManager.cs (1)
56
LPARAM
lParam)
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 (7)
1592
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (
LPARAM
)(int)PInvoke.HTCLIENT);
5022
(
LPARAM
)(PInvoke.PRF_CHILDREN | PInvoke.PRF_CLIENT | PInvoke.PRF_ERASEBKGND | PInvoke.PRF_NONCLIENT));
7189
Message m = Message.Create(HWND, PInvokeCore.WM_PRINTCLIENT, (WPARAM)hdc, (
LPARAM
)flags);
8861
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)hDC, (
LPARAM
)lParam);
8878
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)dcWrapper.HDC, (
LPARAM
)lParam);
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);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (2)
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);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
988
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&start), (
LPARAM
)(&end));
2209
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXT, (WPARAM)index, (
LPARAM
)b);
3244
PInvokeCore.SendMessage(this, PInvoke.CB_SETEDITSEL, (WPARAM)0,
LPARAM
.MAKELPARAM(start, end));
3386
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (
LPARAM
)ItemHeight);
3391
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (
LPARAM
)ItemHeight);
3400
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)i, (
LPARAM
)mievent.ItemHeight);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1278
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (WPARAM)(int)colorIndex, (
LPARAM
)value);
1289
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCFONT, (WPARAM)CalendarFontHandle, (
LPARAM
)(-1));
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 (2)
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 (5)
1574
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXT, (WPARAM)index, (
LPARAM
)b);
1641
PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (
LPARAM
)index);
1680
PInvokeCore.SendMessage(this, PInvoke.LB_GETSELITEMS, (WPARAM)count, (
LPARAM
)pResult);
1754
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (
LPARAM
)ItemHeight);
1770
PInvokeCore.SendMessage(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (
LPARAM
)pOffsets);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
483
PInvokeCore.SendMessage(ListView, PInvoke.LVM_SETCOLUMNORDERARRAY, (WPARAM)cols.Length, (
LPARAM
)pCols);
System\Windows\Forms\Controls\ListView\ListView.cs (35)
354
PInvokeCore.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (
LPARAM
)BackColor);
559
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (
LPARAM
)_imageListState.Handle);
814
(
LPARAM
)PInvoke.LVNI_FOCUSED);
841
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (
LPARAM
)ForeColor);
958
(
LPARAM
)(value is null ? 0 : value.Handle));
1222
(
LPARAM
)(value?.Handle ?? 0));
1457
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (
LPARAM
)(value?.Handle ?? 0));
1565
(
LPARAM
)(value?.Handle ?? 0));
3371
(
LPARAM
)PInvoke.LVS_EX_CHECKBOXES);
3568
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (WPARAM)index, (
LPARAM
)(uint)mask);
4305
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (
LPARAM
)handle);
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);
4686
(
LPARAM
)exStyle);
4699
(
LPARAM
)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);
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);
5153
PInvokeCore.SendMessage(this, PInvoke.LVM_SCROLL, (WPARAM)0, (
LPARAM
)scrollY);
5340
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)columnIndex,
LPARAM
.MAKELPARAM(width, 0));
5354
(
LPARAM
)newWidth);
5363
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)index,
LPARAM
.MAKELPARAM(width, 0));
5385
(
LPARAM
)pOrderedColumns);
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);
5736
(
LPARAM
)exStyle);
6883
PInvokeCore.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, (WPARAM)0, (
LPARAM
)SystemInformation.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (2)
230
(
LPARAM
)PInvoke.LVNI_SELECTED);
248
(WPARAM)nextSelected, (
LPARAM
)PInvoke.LVNI_SELECTED);
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
62
(
LPARAM
)PInvoke.LVNI_SELECTED);
110
(
LPARAM
)PInvoke.LVNI_SELECTED);
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
44
(
LPARAM
)PInvoke.LVNI_SELECTED);
133
(
LPARAM
)PInvoke.LVNI_SELECTED);
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
425
(
LPARAM
)(uint)(LIST_VIEW_GROUP_STATE_FLAGS.LVGS_COLLAPSIBLE | LIST_VIEW_GROUP_STATE_FLAGS.LVGS_COLLAPSED));
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
169
(
LPARAM
)(uint)LIST_VIEW_GROUP_STATE_FLAGS.LVGS_FOCUSED) == LIST_VIEW_GROUP_STATE_FLAGS.LVGS_FOCUSED;
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 (3)
1384
PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (WPARAM)0, (
LPARAM
)firstDay);
1686
PInvokeCore.SendMessage(this, PInvoke.MCM_SETCOLOR, (WPARAM)(int)colorIndex, (
LPARAM
)value);
1821
PInvokeCore.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (WPARAM)monthsCount, (
LPARAM
)arr);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (7)
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);
598
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (
LPARAM
)_maximum);
601
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (
LPARAM
)BackColor);
602
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (WPARAM)0, (
LPARAM
)ForeColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
142
(
LPARAM
)SystemInformation.MaxWindowTrackSize.Width);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2633
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (
LPARAM
)e.Location);
3479
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (
LPARAM
)editPoint);
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 (7)
173
(
LPARAM
)(int)PInvoke.ECO_AUTOWORDSELECTION);
1297
(
LPARAM
)(int)PInvoke.ECO_SELECTIONBAR);
2446
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, (WPARAM)0, (
LPARAM
)BackColor);
2491
(
LPARAM
)(int)PInvoke.ECO_SELECTIONBAR);
2677
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETZOOM, (WPARAM)numerator, (
LPARAM
)denominator);
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\TextBox\TextBoxBase.cs (2)
1748
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (
LPARAM
)end);
1861
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (
LPARAM
)end);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
406
(
LPARAM
)linesVertical) != 0;
427
PInvokeCore.SendMessage(Owner, PInvokeCore.EM_SETSEL, (WPARAM)start, (
LPARAM
)end);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2660
(
LPARAM
)(uint)(PInvoke.PRF_CHILDREN | PInvoke.PRF_CLIENT | PInvoke.PRF_ERASEBKGND | PInvoke.PRF_NONCLIENT));
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\TrackBar\TrackBar.cs (9)
438
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (
LPARAM
)_maximum);
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);
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 (8)
706
(
LPARAM
)node.Handle);
864
(
LPARAM
)node.Handle);
1290
PInvokeCore.SendMessage(tv, PInvoke.TVM_EDITLABELW, 0, (
LPARAM
)HTREEITEMInternal);
1473
PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_COLLAPSE, (
LPARAM
)Handle);
1679
PInvokeCore.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_EXPAND, (
LPARAM
)Handle);
1895
PInvokeCore.PostMessage(tv, PInvoke.TVM_EDITLABELW, default, (
LPARAM
)HTREEITEMInternal);
1984
PInvokeCore.SendMessage(tv, PInvoke.TVM_DELETEITEM, 0, (
LPARAM
)HTREEITEMInternal);
2177
item.lParam = (
LPARAM
)HTREEITEMInternal;
System\Windows\Forms\Controls\TreeView\TreeView.cs (7)
1117
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_CARET, (
LPARAM
)hnode);
1319
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE, (
LPARAM
)hnode);
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);
2639
(
LPARAM
)(nint)(DoubleBuffered ? PInvoke.TVS_EX_DOUBLEBUFFER : 0));
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);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
313
LPARAM
lp,
321
LPARAM
lp,
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)
488
private static unsafe int FolderBrowserDialog_BrowseCallbackProc(HWND hwnd, uint msg,
LPARAM
lParam,
LPARAM
lpData)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (12)
273
LPARAM
lParam,
757
(
LPARAM
)animationSpeed);
779
LPARAM
.MAKELPARAM(min, max));
810
(
LPARAM
)(BOOL)focus);
815
(
LPARAM
)(BOOL)requiresElevation);
820
(
LPARAM
)(BOOL)enable);
825
(
LPARAM
)(BOOL)enable);
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);
912
LPARAM
lParam)
1310
(
LPARAM
)ptrTaskDialogConfig,
1662
LPARAM
lParam = default,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
125
(
LPARAM
)SystemInformation.MaxWindowTrackSize.Width);
System\Windows\Forms\Form.cs (3)
3414
PInvokeCore.SendMessage(TaskbarOwner, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (
LPARAM
)icon.Handle);
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);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
455
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (
LPARAM
)(int)PInvoke.HTCLIENT);
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\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 (1)
1181
PInvokeCore.SendMessage(this, PInvoke.TTM_SETDELAYTIME, (WPARAM)type, (
LPARAM
)time);
System\Windows\Forms\WindowSubclassHandler.cs (1)
266
LPARAM
lParam)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
70
PInvokeCore.SendMessage(hwnd, PInvoke.TVM_SETEXTENDEDSTYLE, (WPARAM)0, (
LPARAM
)exstyle);
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
135
(
LPARAM
)PInvoke.GetDlgItem((HWND)hwnd, (int)MESSAGEBOX_RESULT.IDOK));
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\DesignerUtils.cs (2)
447
(
LPARAM
)(uint)(PInvoke.PRF_CHILDREN | PInvoke.PRF_CLIENT | PInvoke.PRF_ERASEBKGND | PInvoke.PRF_NONCLIENT));
855
(
LPARAM
)PInvoke.LVS_EX_DOUBLEBUFFER);
System.Windows.Forms.Primitives (40)
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])(
267
LPARAM
lParam);
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])
248
LPARAM
lParam);
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (1)
28
BOOL Interface.FDebugMessage(nint dwReserved, uint msg, WPARAM wParam,
LPARAM
lParam)
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 (3)
23
internal
LPARAM
LParamInternal;
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)
Windows\Win32\HOOKPROC.cs (1)
6
internal delegate LRESULT HOOKPROC(int nCode, WPARAM wParam,
LPARAM
lParam);
Windows\Win32\PInvoke.SendMessageCallback.cs (1)
16
LPARAM
lParam = default)
Windows\Win32\PInvoke.UiaReturnRawElementProvider.cs (2)
10
/// <inheritdoc cref="UiaReturnRawElementProvider(HWND, WPARAM,
LPARAM
, IRawElementProviderSimple*)"/>
14
LPARAM
lParam,
Windows\Win32\UI\Controls\Dialogs\CHOOSECOLORW.cs (2)
131
public
LPARAM
lCustData;
146
public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM,
LPARAM
, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (2)
127
public
LPARAM
lCustData;
142
public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM,
LPARAM
, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\OPENFILENAME.cs (1)
26
public
LPARAM
lCustData;
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (3)
172
public
LPARAM
lCustData;
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 (3)
40
public
LPARAM
lCustData;
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 (3)
240
public
LPARAM
lCustData;
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\HTREEITEM.cs (3)
8
public static explicit operator
LPARAM
(HTREEITEM value) => (
LPARAM
)value.Value;
9
public static explicit operator HTREEITEM(
LPARAM
value) => (HTREEITEM)value.Value;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47
LRESULT result = PInvokeCore.SendMessage(sender, message, (WPARAM)(BOOL)state, (
LPARAM
)i);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (3)
21
delegate* unmanaged[Stdcall]<HWND, uint,
LPARAM
,
LPARAM
, int> callback,
22
LPARAM
lParam)
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 (6)
Metafiles\EmfRecord.cs (2)
15
public
LPARAM
Data { get; }
22
LPARAM
data)
Metafiles\EmfScope.cs (2)
86
(delegate* unmanaged[Stdcall]<HDC, HANDLETABLE*, ENHMETARECORD*, int,
LPARAM
, int>)callback,
238
LPARAM
data)
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 (17)
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
347
BOOL IMsoComponent.Interface.FDebugMessage(nint hInst, uint msg, WPARAM wParam,
LPARAM
lParam)
System\Windows\Forms\FileDialogTests.cs (3)
673
Assert.Equal((
LPARAM
)0, o.lCustData);
730
Assert.Equal((
LPARAM
)0, o.lCustData);
769
Assert.Equal((
LPARAM
)0, o.lCustData);
System\Windows\Forms\ListViewTests.cs (1)
5491
PInvokeCore.SendMessage(listView, PInvokeCore.WM_KEYUP, (WPARAM)keyCode, (
LPARAM
)lParam);
System\Windows\Forms\RichTextBoxTests.cs (5)
567
PInvokeCore.SendMessage(control, PInvokeCore.EM_SETOPTIONS, (WPARAM)(int)PInvoke.ECOOP_OR, (
LPARAM
)(int)PInvoke.ECO_AUTOWORDSELECTION);
5551
IntPtr result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETSEL, (WPARAM)(&selectionStart), (
LPARAM
)(&selectionEnd));
6141
IntPtr result = PInvokeCore.SendMessage(control, PInvokeCore.EM_GETSEL, (WPARAM)(&selectionStart), (
LPARAM
)(&selectionEnd));
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));
System\Windows\Forms\ToolTipTests.cs (1)
902
int size = (int)&toolInfo.lParam - (int)&toolInfo + sizeof(
LPARAM
);
TextBoxBaseTests.cs (6)
2920
(
LPARAM
)(&selectionEnd));
3097
(
LPARAM
)(&selectionEnd));
4163
(
LPARAM
)(&selectionEnd));
6305
(
LPARAM
)(&selectionEnd));
6441
(
LPARAM
)(&selectionEnd));
7653
LPARAM
.MAKELPARAM(1, 2));
System.Windows.Forms.TestUtilities (1)
ControlExtensions.cs (1)
20
PInvokeCore.SendMessage(control, PInvokeCore.WM_PRINT, (WPARAM)emf.HDC, (
LPARAM
)(uint)prf);