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)
18internal 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)
533private class SubNativeWindow : NativeWindow 538private class WndProcTrackingNativeWindow : NativeWindow
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
464private class DummyNativeWindow : NativeWindow, IDisposable
33 instantiations of NativeWindow
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
710_dropDownOwnerWindow ??= new NativeWindow();
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
195nativeWindow = new NativeWindow();
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
117_tipWindow = new NativeWindow();
System\Windows\Forms\Form.cs (1)
2088_ownerWindow ??= new NativeWindow();
System.Windows.Forms.Tests (29)
System\Windows\Forms\ApplicationTests.cs (1)
248NativeWindow window = new();
System\Windows\Forms\ControlTests.Methods.cs (4)
1995NativeWindow window = new(); 2018NativeWindow window = new(); 2050NativeWindow window = new(); 2073NativeWindow window = new();
System\Windows\Forms\NativeWindowTests.cs (24)
13NativeWindow window = new(); 21NativeWindow window = new(); 30NativeWindow window1 = new(); 40NativeWindow window2 = new(); 50NativeWindow window = new(); 66NativeWindow window = new(); 77NativeWindow window = new(); 87NativeWindow window = new(); 100NativeWindow window1 = new(); 113NativeWindow window2 = new(); 144NativeWindow window = new(); 164NativeWindow window = new(); 173NativeWindow window = new(); 187NativeWindow window = new(); 199NativeWindow window1 = new(); 209NativeWindow window2 = new(); 226NativeWindow window = new(); 237NativeWindow window = new(); 248NativeWindow window = new(); 258NativeWindow window = new(); 405NativeWindow window = new(); 415NativeWindow window = new(); 427NativeWindow window = new(); 437NativeWindow window = new();
78 references to NativeWindow
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
527dialog.ShowDialog(NativeWindow.FromHandle(parentWindow));
System.Windows.Forms (45)
System\Windows\Forms\Application.cs (3)
1351if (NativeWindow.AnyHandleCreated) 1381if (NativeWindow.AnyHandleCreated) 1477=> NativeWindow.SetUnhandledExceptionModeInternal(mode, threadScope);
System\Windows\Forms\Application.ThreadContext.cs (1)
959if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Control.cs (6)
5280NativeWindow? nativeWindow = NativeWindow.FromHandle(handle); 6262if (NativeWindow.WndProcShouldBeDebuggable && !current._synchronous) 6285if (!NativeWindow.WndProcShouldBeDebuggable 8668if (bulkValidation || NativeWindow.WndProcShouldBeDebuggable) 12007HWND handle = NativeWindow.GetHandleFromWindowId((short)m.WParamInternal.LOWORD);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1866NativeWindow? childWindow; 2036internal NativeWindow GetListNativeWindow() 2043NativeWindow 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)
48private NativeWindow? _dropDownOwnerWindow; 706internal virtual NativeWindow DropDownOwnerWindow
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
323internal override NativeWindow DropDownOwnerWindow
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
107if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
126if (NativeWindow.WndProcShouldBeDebuggable) 176NativeWindow? 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)
26private NativeWindow? _tipWindow;
System\Windows\Forms\Form.cs (2)
157private NativeWindow? _ownerWindow; 3348if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1579if (NativeWindow.WndProcShouldBeDebuggable) 1648if (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) 564return (NativeWindow?)value.Target; 630NativeWindow? w = (NativeWindow?)gcHandle.Target; 710private 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)
248NativeWindow window = new(); 265var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic; 315var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic;
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
14var childNativeWindow = comboBox.GetListNativeWindow();
System\Windows\Forms\ControlTests.Methods.cs (4)
1995NativeWindow window = new(); 2018NativeWindow window = new(); 2050NativeWindow window = new(); 2073NativeWindow window = new();
System\Windows\Forms\NativeWindowTests.cs (24)
13NativeWindow window = new(); 21NativeWindow window = new(); 30NativeWindow window1 = new(); 40NativeWindow window2 = new(); 50NativeWindow window = new(); 66NativeWindow window = new(); 77NativeWindow window = new(); 87NativeWindow window = new(); 100NativeWindow window1 = new(); 113NativeWindow window2 = new(); 144NativeWindow window = new(); 164NativeWindow window = new(); 173NativeWindow window = new(); 187NativeWindow window = new(); 199NativeWindow window1 = new(); 209NativeWindow window2 = new(); 226NativeWindow window = new(); 237NativeWindow window = new(); 248NativeWindow window = new(); 258NativeWindow window = new(); 405NativeWindow window = new(); 415NativeWindow window = new(); 427NativeWindow window = new(); 437NativeWindow window = new();