111 references to Null
System.Drawing.Common (1)
System\Drawing\Printing\PageSettings.cs (1)
326
HWND.
Null
,
System.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (1)
55
public static GetDcScope ScreenDC => new(HWND.
Null
);
System.Windows.Forms (99)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2554
*phwnd = HWND.
Null
;
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
22
private HWND _handle = HWND.
Null
;
524
=> UIAHelper.WindowHandleToVariant(Owner?.InternalHandle ?? HWND.
Null
),
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (2)
41
UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(_labelEdit.TryGetTarget(out var target) ? target.HWND : HWND.
Null
),
79
_labelEdit.TryGetTarget(out var target) ? (int)target.HWND : (int)HWND.
Null
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
71
public bool IsHandleCreated => Handle != HWND.
Null
;
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (3)
228
PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.
Null
, ref pt);
272
if (PInvokeCore.MapWindowPoints(HWND.
Null
, _owningChildEdit.Handle, ref clientLocation) == 0)
308
PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.
Null
, ref r);
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
263
public HWND Hwnd => GetControl()?.HWND ?? HWND.
Null
;
System\Windows\Forms\ActiveX\AxHost.cs (5)
1760
hwnd = (ContainingControl is null) ? HWND.
Null
: ContainingControl.HWND,
2159
parent is null ? HWND.
Null
: parent.HWND,
2971
hWndOwner = (ContainingControl is null) ? HWND.
Null
: ContainingControl.HWND,
3026
HWND handle = ContainingControl is null ? HWND.
Null
: ContainingControl.HWND;
3139
HWND hwnd = HWND.
Null
;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
305
HWND hwnd = HWND.
Null
;
345
*phwnd = _host.ParentInternal?.HWND ?? HWND.
Null
;
402
lpFrameInfo->hwndFrame = _host.ParentInternal?.HWND ?? HWND.
Null
;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
756
*phwnd = HWND.
Null
;
System\Windows\Forms\Application.ComponentManager.cs (4)
201
return PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE);
231
if (PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
239
PInvoke.GetMessage(&msg, HWND.
Null
, 0, 0);
309
if (!PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ComponentThreadContext.cs (4)
292
if (PInvoke.GetMessage(&msg, HWND.
Null
, 0, 0))
309
else if (!PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
454
if (!PInvokeCore.PeekMessage(&temp, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
478
HWND IMsoComponent.Interface.HwndGetWindow(msocWindow dwWhich, uint dwReserved) => HWND.
Null
;
System\Windows\Forms\Application.LightThreadContext.cs (4)
64
if (!PInvokeCore.PeekMessage(&temp, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
83
if (PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
91
PInvoke.GetMessage(&msg, HWND.
Null
, 0, 0);
134
if (!PInvokeCore.PeekMessage(&msg, HWND.
Null
, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
51
HWND handle = parent is null ? HWND.
Null
: (HWND)parent.Handle;
System\Windows\Forms\Control.cs (7)
9395
PInvokeCore.MapWindowPoints(HWND.
Null
, this, ref rect);
9405
PInvokeCore.MapWindowPoints(this, HWND.
Null
, ref rect);
10198
PInvoke.SetWindowPos(this, HWND.
Null
, x, y, width, height, flags);
10326
if (PInvoke.SetParent(this, HWND.
Null
).IsNull)
10457
HWND.
Null
,
10869
PInvokeCore.MapWindowPoints(HWND.
Null
, PInvoke.GetParent(this), ref rect);
12031
HWND hWnd = HWND.
Null
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
61
ScaleHelper.IsScalingRequirementMet ? Control.HWNDInternal : HWND.
Null
);
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (1)
126
DrawButtonForHandle(g, bounds, focused, state, HWND.
Null
);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
110
CheckBoxState state) => DrawCheckBox(g, glyphLocation, textBounds, checkBoxText, font, flags, focused, state, HWND.
Null
);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (4)
51
DrawRadioButton(g, glyphLocation, state, HWND.
Null
);
113
DrawRadioButton(g, glyphLocation, textBounds, radioButtonText, font, flags, focused, state, HWND.
Null
);
201
HWND.
Null
);
254
return GetGlyphSize(hdc, state, HWND.
Null
);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
54
PInvokeCore.MapWindowPoints(listHandle, HWND.
Null
, ref translated);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2385
_dropDownHandle = HWND.
Null
;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
105
DrawDropDownButtonForHandle(hdc, bounds, state, HWND.
Null
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
25621
_editingPanel?.ReleaseUiaProvider(HWND.
Null
);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2430
EditingComboBox?.ReleaseUiaProvider(HWND.
Null
);
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
171
UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(HWND.
Null
),
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
189
UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(HWND.
Null
),
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
194
return UIAHelper.WindowHandleToVariant(HWND.
Null
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1866
_helpPane?.ReleaseUiaProvider(HWND.
Null
);
1867
_commandsPane?.ReleaseUiaProvider(HWND.
Null
);
1868
_toolStrip?.ReleaseUiaProvider(HWND.
Null
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
148
ScaleHelper.IsScalingRequirementMet ? HWNDInternal : HWND.
Null
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (2)
210
? (int)(owner?.OwnerGridView?.InternalHandle ?? HWND.
Null
)
211
: (int)HWND.
Null
,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (8)
4793
_scrollBar?.ReleaseUiaProvider(HWND.
Null
);
4794
_listBox?.ReleaseUiaProvider(HWND.
Null
);
4795
_dropDownHolder?.ReleaseUiaProvider(HWND.
Null
);
4796
_editTextBox?.ReleaseUiaProvider(HWND.
Null
);
4797
_dropDownButton?.ReleaseUiaProvider(HWND.
Null
);
4798
_dialogButton?.ReleaseUiaProvider(HWND.
Null
);
4938
HWND.
Null
,
5011
HWND.
Null
,
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
855
_control?.ReleaseUiaProvider(HWND.
Null
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
640
_dropDown?.ReleaseUiaProvider(HWND.
Null
);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
210
PInvoke.ShowCaret(HWND.
Null
);
470
PInvoke.HideCaret(HWND.
Null
);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
54
HWND.
Null
,
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
61
(int)(this.TryGetOwnerAs(out TrackBar? owner) ? owner.InternalHandle : HWND.
Null
),
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
333
hwnd = HWND.
Null
,
425
HWND hwndInPlaceObject = HWND.
Null
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
187
HWND hwnd = HWND.
Null
;
271
lpFrameInfo->hwndFrame = Host.ParentInternal is { } parent ? parent.HWND : HWND.
Null
;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (2)
665
_handle = HWND.
Null
;
1012
_handle = HWND.
Null
;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
90
=> UIAHelper.WindowHandleToVariant(_window?.Handle ?? HWND.
Null
),
System\Windows\Forms\Help\Help.cs (1)
163
PInvoke.HtmlHelp(HWND.
Null
, pathAndFileName, HH_DISPLAY_TOPIC, null);
System\Windows\Forms\NativeWindow.cs (5)
414
HWND createResult = HWND.
Null
;
541
HWND = HWND.
Null
;
573
handle = HWND.
Null
;
626
w?.HWND = HWND.
Null
;
688
HWND = HWND.
Null
;
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (2)
26
modeSize = PInvoke.DocumentProperties(HWND.
Null
, HANDLE.Null, n, null, (DEVMODEW*)null, 0);
39
HWND.
Null
,
System\Windows\Forms\Rendering\ControlPaint.cs (1)
335
using GetDcScope screenDC = new(HWND.
Null
);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1047
return HWND.
Null
;
1050
HWND baseHwnd = current?.HWND ?? HWND.
Null
;
1051
HWND hwnd = HWND.
Null
;
1104
hwnd = HWND.
Null
;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (5)
106
using PInvoke.OpenThemeDataScope handle = new(HWND.
Null
, className);
216
DrawBackground(hdc, bounds, HWND.
Null
);
245
DrawBackground(hdc, bounds, clipRectangle, HWND.
Null
);
576
return GetPartSize(hdc, type, HWND.
Null
);
883
return Create(className, throwExceptionOnFail, HWND.
Null
);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (1)
12
private HWND _handle = HWND.
Null
;
System\Windows\Forms\Design\ListViewDesigner.cs (1)
84
PInvokeCore.MapWindowPoints(HWND.
Null
, headerHwnd, ref point);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
491
while (PInvokeCore.PeekMessage(&msg, HWND.
Null
, PInvokeCore.WM_PAINT, PInvokeCore.WM_PAINT, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE))
System.Windows.Forms.Tests (5)
System\Windows\Forms\CheckBoxRendererTests.cs (1)
141
CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, TextFormatFlags.Default, focus, cBState, HWND.
Null
);
System\Windows\Forms\ClipboardTests.cs (1)
559
OpenClipboard(HWND.
Null
).Should().BeTrue();
System\Windows\Forms\FormTests.cs (1)
2746
var message = Message.Create(HWND.
Null
, PInvokeCore.WM_QUERYENDSESSION, wparam: default, lparam: default);
System\Windows\Forms\RadioButtonRendererTests.cs (2)
136
HWND.
Null
311
HWND hwnd = HWND.
Null
;
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ControlTestBase.cs (1)
108
Assert.Equal(HWND.
Null
, PInvoke.GetCapture());
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
88
HWND.
Null
,