4 writes to HWND
System.Windows.Forms (4)
System\Windows\Forms\NativeWindow.cs (4)
301HWND = hwnd; 541HWND = HWND.Null; 628w.HWND = HWND.Null; 691HWND = HWND.Null;
47 references to HWND
System.Windows.Forms (47)
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 (2)
71public bool IsHandleCreated => Handle != HWND.Null; 109PInvoke.UiaReturnRawElementProvider(HWND, wParam: 0, lParam: 0, (IRawElementProviderSimple*)null);
System\Windows\Forms\Control.cs (1)
2133internal 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); 1869if (_childEdit is not null && !_childEdit.HWND.IsNull) 1874if (_childListBox is not null && !_childListBox.HWND.IsNull) 3228PInvoke.SHAutoComplete(_childEdit.HWND, (SHELL_AUTOCOMPLETE_FLAGS)AutoCompleteSource | mode); 3441if (_childEdit is not null && !_childEdit.HWND.IsNull)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
197ownerHwnd = new(nativeWindow, nativeWindow.HWND);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (5)
127HWND.HWND_TOP, 156HWND.HWND_TOP, 186using BeginPaintScope hdc = new(HWND); 371using GetDcScope hdc = new(HWND); 385HWND.HWND_TOP,
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 (16)
95handle = HWND; 129if (!HWND.IsNull) 151public IntPtr Handle => HWND; 155HWND IHandle<HWND>.Handle => HWND; 409if (!HWND.IsNull) 414HWND createResult = HWND.Null; 483DPI_AWARENESS_CONTEXT controlHandleDpiContext = PInvoke.GetWindowDpiAwarenessContext(HWND); 531if (!HWND.IsNull) 533if (!PInvoke.DestroyWindow(HWND)) 541HWND = HWND.Null; 573handle = HWND.Null; 628w.HWND = HWND.Null; 667if (HWND.IsNull) 674if (HWND.IsNull) 684RemoveWindowFromDictionary(HWND, this); 691HWND = HWND.Null;
System\Windows\Forms\Timer.cs (8)
208public bool IsTimerRunning => _timerID != 0 && !HWND.IsNull; 212if (HWND.IsNull) 224Parent = HWND.HWND_MESSAGE 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?");