4 writes to HWND
System.Windows.Forms (4)
System\Windows\Forms\NativeWindow.cs (4)
301
HWND
= hwnd;
541
HWND
= HWND.Null;
628
w.
HWND
= HWND.Null;
691
HWND
= HWND.Null;
47 references to HWND
System.Windows.Forms (47)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (3)
41
UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(_labelEdit.TryGetTarget(out var target) ? target.
HWND
: HWND.Null),
51
PInvoke.UiaHostProviderFromHwnd(target.
HWND
, out IRawElementProviderSimple* provider);
79
_labelEdit.TryGetTarget(out var target) ? (int)target.
HWND
: (int)HWND.Null
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (2)
71
public bool IsHandleCreated => Handle !=
HWND
.Null;
109
PInvoke.UiaReturnRawElementProvider(
HWND
, wParam: 0, lParam: 0, (IRawElementProviderSimple*)null);
System\Windows\Forms\Control.cs (1)
2133
internal HWND HWNDInternal => _window.
HWND
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (2)
73
Debug.Assert(s_acWindows.ContainsKey(
HWND
));
74
s_acWindows.Remove(
HWND
); // so we do not leak ac windows.
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (2)
60
if (!
HWND
.IsNull)
62
PInvoke.UiaReturnRawElementProvider(
HWND
, wParam: 0, lParam: 0, (IRawElementProviderSimple*)null);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
298
_childEditAccessibleObject ??= new ComboBoxChildEditUiaProvider(this, _childEdit!.
HWND
);
309
new ComboBoxChildListUiaProvider(this, DropDownStyle == ComboBoxStyle.Simple ? _childListBox!.
HWND
: _dropDownHandle);
1869
if (_childEdit is not null && !_childEdit.
HWND
.IsNull)
1874
if (_childListBox is not null && !_childListBox.
HWND
.IsNull)
3228
PInvoke.SHAutoComplete(_childEdit.
HWND
, (SHELL_AUTOCOMPLETE_FLAGS)AutoCompleteSource | mode);
3441
if (_childEdit is not null && !_childEdit.
HWND
.IsNull)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
197
ownerHwnd = new(nativeWindow, nativeWindow.
HWND
);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (5)
127
HWND
.HWND_TOP,
156
HWND
.HWND_TOP,
186
using BeginPaintScope hdc = new(
HWND
);
371
using GetDcScope hdc = new(
HWND
);
385
HWND
.HWND_TOP,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
83
PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, _owner.
HWND
), out IRawElementProviderSimple* provider);
System\Windows\Forms\NativeWindow.cs (16)
95
handle =
HWND
;
129
if (!
HWND
.IsNull)
151
public IntPtr Handle =>
HWND
;
155
HWND IHandle<HWND>.Handle =>
HWND
;
409
if (!
HWND
.IsNull)
414
HWND createResult =
HWND
.Null;
483
DPI_AWARENESS_CONTEXT controlHandleDpiContext = PInvoke.GetWindowDpiAwarenessContext(
HWND
);
531
if (!
HWND
.IsNull)
533
if (!PInvoke.DestroyWindow(
HWND
))
541
HWND =
HWND
.Null;
573
handle =
HWND
.Null;
628
w.HWND =
HWND
.Null;
667
if (
HWND
.IsNull)
674
if (
HWND
.IsNull)
684
RemoveWindowFromDictionary(
HWND
, this);
691
HWND =
HWND
.Null;
System\Windows\Forms\Timer.cs (8)
208
public bool IsTimerRunning => _timerID != 0 && !
HWND
.IsNull;
212
if (
HWND
.IsNull)
224
Parent =
HWND
.HWND_MESSAGE
230
Debug.Assert(!
HWND
.IsNull, "Could not create timer HWND.");
231
return !
HWND
.IsNull;
278
hwnd =
HWND
;
344
Debug.Assert(m.HWND ==
HWND
&& !
HWND
.IsNull, "Timer getting messages for other windows?");