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)
533private class SubNativeWindow : NativeWindow 538private class WndProcTrackingNativeWindow : NativeWindow
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
462private class DummyNativeWindow : NativeWindow, IDisposable
33 instantiations of NativeWindow
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
672_dropDownOwnerWindow ??= new NativeWindow();
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
195nativeWindow = 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)
248NativeWindow window = new();
System\Windows\Forms\ControlTests.Methods.cs (4)
2004NativeWindow window = new(); 2027NativeWindow window = new(); 2059NativeWindow window = new(); 2082NativeWindow 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)
521dialog.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)
5165NativeWindow? nativeWindow = NativeWindow.FromHandle(handle); 6125if (NativeWindow.WndProcShouldBeDebuggable && !current._synchronous) 6148if (!NativeWindow.WndProcShouldBeDebuggable 8443if (bulkValidation || NativeWindow.WndProcShouldBeDebuggable) 11704HWND 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)
48private NativeWindow? _dropDownOwnerWindow; 668internal 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)
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)
27private NativeWindow? _tipWindow;
System\Windows\Forms\Form.cs (2)
155private NativeWindow? _ownerWindow; 3165if (NativeWindow.WndProcShouldBeDebuggable)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1574if (NativeWindow.WndProcShouldBeDebuggable) 1643if (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)
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)
2004NativeWindow window = new(); 2027NativeWindow window = new(); 2059NativeWindow window = new(); 2082NativeWindow 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();