13 types derived from NativeWindow
System.Windows.Forms (9)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
9internal class LabelEditNativeWindow : NativeWindow
System\Windows\Forms\Control.ControlNativeWindow.cs (1)
10internal sealed class ControlNativeWindow : NativeWindow, IWindowTarget
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (1)
11private sealed class ACNativeWindow : NativeWindow
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (1)
10private class ComboBoxChildNativeWindow : NativeWindow
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.WebBrowserBaseNativeWindow.cs (1)
13private class WebBrowserBaseNativeWindow : NativeWindow
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
19internal partial class ErrorWindow : NativeWindow
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (1)
13private class NotifyIconNativeWindow : NativeWindow
System\Windows\Forms\Timer.cs (1)
180private class TimerNativeWindow : NativeWindow
System\Windows\Forms\ToolTip\ToolTip.ToolTipNativeWindow.cs (1)
8private class ToolTipNativeWindow : NativeWindow
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (1)
8private class ChildSubClass : NativeWindow, IDesignerTarget
System.Windows.Forms.Tests (2)
System\Windows\Forms\NativeWindowTests.cs (2)
535private class SubNativeWindow : NativeWindow 540private class WndProcTrackingNativeWindow : NativeWindow
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
456private class DummyNativeWindow : NativeWindow, IDisposable
33 instantiations of NativeWindow
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
671_dropDownOwnerWindow ??= new NativeWindow();
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
210nativeWindow = new NativeWindow();
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
118_tipWindow = new NativeWindow();
System\Windows\Forms\Form.cs (1)
1930_ownerWindow ??= new NativeWindow();
System.Windows.Forms.Tests (29)
System\Windows\Forms\ApplicationTests.cs (1)
250NativeWindow window = new();
System\Windows\Forms\ControlTests.Methods.cs (4)
1964NativeWindow window = new(); 1987NativeWindow window = new(); 2019NativeWindow window = new(); 2042NativeWindow window = new();
System\Windows\Forms\NativeWindowTests.cs (24)
15NativeWindow window = new(); 23NativeWindow window = new(); 32NativeWindow window1 = new(); 42NativeWindow window2 = new(); 52NativeWindow window = new(); 68NativeWindow window = new(); 79NativeWindow window = new(); 89NativeWindow window = new(); 102NativeWindow window1 = new(); 115NativeWindow window2 = new(); 146NativeWindow window = new(); 166NativeWindow window = new(); 175NativeWindow window = new(); 189NativeWindow window = new(); 201NativeWindow window1 = new(); 211NativeWindow window2 = new(); 228NativeWindow window = new(); 239NativeWindow window = new(); 250NativeWindow window = new(); 260NativeWindow window = new(); 407NativeWindow window = new(); 417NativeWindow window = new(); 429NativeWindow window = new(); 439NativeWindow window = new();
78 references to NativeWindow
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
515dialog.ShowDialog(NativeWindow.FromHandle(parentWindow));
System.Windows.Forms (45)
System\Windows\Forms\Application.cs (3)
1338if (NativeWindow.AnyHandleCreated) 1368if (NativeWindow.AnyHandleCreated) 1464=> NativeWindow.SetUnhandledExceptionModeInternal(mode, threadScope);
System\Windows\Forms\Application.ThreadContext.cs (1)
958if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Control.cs (6)
5163NativeWindow? nativeWindow = NativeWindow.FromHandle(handle); 6123if (NativeWindow.WndProcShouldBeDebuggable && !current._synchronous) 6146if (!NativeWindow.WndProcShouldBeDebuggable 8441if (bulkValidation || NativeWindow.WndProcShouldBeDebuggable) 11702HWND handle = NativeWindow.GetHandleFromWindowId((short)m.WParamInternal.LOWORD);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1814NativeWindow? childWindow; 1979internal NativeWindow GetListNativeWindow() 1986NativeWindow listNativeWindow = GetListNativeWindow();
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1233_windowId = NativeWindow.CreateWindowId(this); 1305NativeWindow.RemoveWindowFromIDTable(_windowId);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
47private NativeWindow? _dropDownOwnerWindow; 667internal virtual NativeWindow DropDownOwnerWindow
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
303internal override NativeWindow DropDownOwnerWindow =>
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
107if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
127if (NativeWindow.WndProcShouldBeDebuggable) 191NativeWindow? nativeWindow = null;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
408if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
141if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
326if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
1654return !NativeWindow.WndProcShouldBeDebuggable;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
27private NativeWindow? _tipWindow;
System\Windows\Forms\Form.cs (2)
155private NativeWindow? _ownerWindow; 3165if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1573if (NativeWindow.WndProcShouldBeDebuggable) 1642if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\NativeWindow.cs (13)
57private NativeWindow? _nextWindow; 58private readonly WeakReference<NativeWindow> _weakThisPtr; 160internal NativeWindow? PreviousWindow { get; private set; } 236private static void AddWindowToTable(HWND handle, NativeWindow window) 255if (oldRoot.Target is NativeWindow target) 290/// Assigns a handle to this <see cref="NativeWindow"/> instance. 417NativeWindow? prevTargetWindow = windowClass._targetWindow; 554public static NativeWindow? FromHandle(IntPtr handle) 560private static NativeWindow? GetWindowFromTable(HWND handle) => 562? (NativeWindow?)value.Target 625NativeWindow? w = (NativeWindow?)gcHandle.Target; 705private static void RemoveWindowFromDictionary(HWND hwnd, NativeWindow window)
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
22internal NativeWindow? _targetWindow;
System\Windows\Forms\WindowSubclassHandler.cs (1)
47/// is also the way that the <see cref="NativeWindow"/> class does it.
System.Windows.Forms.Tests (32)
System\Windows\Forms\ApplicationTests.cs (3)
250NativeWindow window = new(); 267var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic; 317var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic;
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
16var childNativeWindow = comboBox.GetListNativeWindow();
System\Windows\Forms\ControlTests.Methods.cs (4)
1964NativeWindow window = new(); 1987NativeWindow window = new(); 2019NativeWindow window = new(); 2042NativeWindow window = new();
System\Windows\Forms\NativeWindowTests.cs (24)
15NativeWindow window = new(); 23NativeWindow window = new(); 32NativeWindow window1 = new(); 42NativeWindow window2 = new(); 52NativeWindow window = new(); 68NativeWindow window = new(); 79NativeWindow window = new(); 89NativeWindow window = new(); 102NativeWindow window1 = new(); 115NativeWindow window2 = new(); 146NativeWindow window = new(); 166NativeWindow window = new(); 175NativeWindow window = new(); 189NativeWindow window = new(); 201NativeWindow window1 = new(); 211NativeWindow window2 = new(); 228NativeWindow window = new(); 239NativeWindow window = new(); 250NativeWindow window = new(); 260NativeWindow window = new(); 407NativeWindow window = new(); 417NativeWindow window = new(); 429NativeWindow window = new(); 439NativeWindow window = new();