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)
1571
PInvokeCore.SendMessage(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (
LPARAM
)(int)PInvoke.HTCLIENT);
5001
(
LPARAM
)(PInvoke.PRF_CHILDREN | PInvoke.PRF_CLIENT | PInvoke.PRF_ERASEBKGND | PInvoke.PRF_NONCLIENT));
7168
Message m = Message.Create(HWND, PInvokeCore.WM_PRINTCLIENT, (WPARAM)hdc, (
LPARAM
)flags);
8842
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)hDC, (
LPARAM
)lParam);
8859
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)dcWrapper.HDC, (
LPARAM
)lParam);
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);
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)
974
PInvokeCore.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&start), (
LPARAM
)(&end));
2198
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.CB_GETLBTEXT, (WPARAM)index, (
LPARAM
)b);
3247
PInvokeCore.SendMessage(this, PInvoke.CB_SETEDITSEL, (WPARAM)0,
LPARAM
.MAKELPARAM(start, end));
3389
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (
LPARAM
)ItemHeight);
3394
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (
LPARAM
)ItemHeight);
3403
PInvokeCore.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)i, (
LPARAM
)mievent.ItemHeight);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1280
PInvokeCore.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (WPARAM)(int)colorIndex, (
LPARAM
)value);
1291
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);
761
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (
LPARAM
)ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (5)
1576
int actualLength = (int)PInvokeCore.SendMessage(this, PInvoke.LB_GETTEXT, (WPARAM)index, (
LPARAM
)b);
1643
PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (
LPARAM
)index);
1682
PInvokeCore.SendMessage(this, PInvoke.LB_GETSELITEMS, (WPARAM)count, (
LPARAM
)pResult);
1756
PInvokeCore.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (
LPARAM
)ItemHeight);
1772
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);
816
(
LPARAM
)PInvoke.LVNI_FOCUSED);
843
PInvokeCore.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (
LPARAM
)ForeColor);
960
(
LPARAM
)(value is null ? 0 : value.Handle));
1224
(
LPARAM
)(value?.Handle ?? 0));
1459
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (
LPARAM
)(value?.Handle ?? 0));
1567
(
LPARAM
)(value?.Handle ?? 0));
3376
(
LPARAM
)PInvoke.LVS_EX_CHECKBOXES);
3573
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (WPARAM)index, (
LPARAM
)(uint)mask);
4310
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (
LPARAM
)handle);
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);
4692
(
LPARAM
)exStyle);
4705
(
LPARAM
)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);
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);
5162
PInvokeCore.SendMessage(this, PInvoke.LVM_SCROLL, (WPARAM)0, (
LPARAM
)scrollY);
5349
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)columnIndex,
LPARAM
.MAKELPARAM(width, 0));
5363
(
LPARAM
)newWidth);
5372
PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)index,
LPARAM
.MAKELPARAM(width, 0));
5394
(
LPARAM
)pOrderedColumns);
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);
5745
(
LPARAM
)exStyle);
6896
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)
1390
PInvokeCore.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (WPARAM)0, (
LPARAM
)firstDay);
1692
PInvokeCore.SendMessage(this, PInvoke.MCM_SETCOLOR, (WPARAM)(int)colorIndex, (
LPARAM
)value);
1827
PInvokeCore.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (WPARAM)monthsCount, (
LPARAM
)arr);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (7)
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);
601
PInvokeCore.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (
LPARAM
)_maximum);
604
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (
LPARAM
)BackColor);
605
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)
2610
PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (
LPARAM
)e.Location);
3456
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);
2455
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETBKGNDCOLOR, (WPARAM)0, (
LPARAM
)BackColor);
2500
(
LPARAM
)(int)PInvoke.ECO_SELECTIONBAR);
2686
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETZOOM, (WPARAM)numerator, (
LPARAM
)denominator);
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\TextBox\TextBoxBase.cs (2)
1755
PInvokeCore.SendMessage(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (
LPARAM
)end);
1868
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)
440
PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (
LPARAM
)_maximum);
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);
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 (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)
1120
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_CARET, (
LPARAM
)hnode);
1322
PInvokeCore.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE, (
LPARAM
)hnode);
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);
2652
(
LPARAM
)(nint)(DoubleBuffered ? PInvoke.TVS_EX_DOUBLEBUFFER : 0));
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);
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)
274
LPARAM
lParam,
761
(
LPARAM
)animationSpeed);
783
LPARAM
.MAKELPARAM(min, max));
814
(
LPARAM
)(BOOL)focus);
819
(
LPARAM
)(BOOL)requiresElevation);
824
(
LPARAM
)(BOOL)enable);
829
(
LPARAM
)(BOOL)enable);
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);
916
LPARAM
lParam)
1314
(
LPARAM
)ptrTaskDialogConfig,
1666
LPARAM
lParam = default,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
125
(
LPARAM
)SystemInformation.MaxWindowTrackSize.Width);
System\Windows\Forms\Form.cs (3)
3429
PInvokeCore.SendMessage(TaskbarOwner, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (
LPARAM
)icon.Handle);
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);
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);