4 writes to HWND
System.Windows.Forms (4)
System\Windows\Forms\NativeWindow.cs (4)
301HWND = hwnd; 541HWND = HWND.Null; 626w?.HWND = HWND.Null; 688HWND = HWND.Null;
37 references to HWND
System.Windows.Forms (37)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (3)
41UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(_labelEdit.TryGetTarget(out var target) ? target.HWND : HWND.Null), 51PInvoke.UiaHostProviderFromHwnd(target.HWND, out IRawElementProviderSimple* provider); 79_labelEdit.TryGetTarget(out var target) ? (int)target.HWND : (int)HWND.Null
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
109PInvoke.UiaReturnRawElementProvider(HWND, wParam: 0, lParam: 0, (IRawElementProviderSimple*)null);
System\Windows\Forms\Control.cs (1)
2207internal HWND HWNDInternal => _window.HWND;
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (2)
73Debug.Assert(s_acWindows.ContainsKey(HWND)); 74s_acWindows.Remove(HWND); // so we do not leak ac windows.
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (2)
60if (!HWND.IsNull) 62PInvoke.UiaReturnRawElementProvider(HWND, wParam: 0, lParam: 0, (IRawElementProviderSimple*)null);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
298_childEditAccessibleObject ??= new ComboBoxChildEditUiaProvider(this, _childEdit!.HWND); 309new ComboBoxChildListUiaProvider(this, DropDownStyle == ComboBoxStyle.Simple ? _childListBox!.HWND : _dropDownHandle); 1870if (_childEdit is not null && !_childEdit.HWND.IsNull) 1875if (_childListBox is not null && !_childListBox.HWND.IsNull) 3229PInvoke.SHAutoComplete(_childEdit.HWND, (SHELL_AUTOCOMPLETE_FLAGS)AutoCompleteSource | mode); 3442if (_childEdit is not null && !_childEdit.HWND.IsNull)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
212ownerHwnd = new(nativeWindow, nativeWindow.HWND);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
187using BeginPaintScope hdc = new(HWND); 372using GetDcScope hdc = new(HWND);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
83PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, _owner.HWND), out IRawElementProviderSimple* provider);
System\Windows\Forms\NativeWindow.cs (11)
95handle = HWND; 129if (!HWND.IsNull) 151public IntPtr Handle => HWND; 155HWND IHandle<HWND>.Handle => HWND; 409if (!HWND.IsNull) 483DPI_AWARENESS_CONTEXT controlHandleDpiContext = PInvoke.GetWindowDpiAwarenessContext(HWND); 531if (!HWND.IsNull) 533if (!PInvoke.DestroyWindow(HWND)) 664if (HWND.IsNull) 671if (HWND.IsNull) 681RemoveWindowFromDictionary(HWND, this);
System\Windows\Forms\Timer.cs (7)
208public bool IsTimerRunning => _timerID != 0 && !HWND.IsNull; 212if (HWND.IsNull) 230Debug.Assert(!HWND.IsNull, "Could not create timer HWND."); 231return !HWND.IsNull; 278hwnd = HWND; 344Debug.Assert(m.HWND == HWND && !HWND.IsNull, "Timer getting messages for other windows?");