3 writes to _settingsWindow
aspire-tray (3)
TrayApplication.Settings.cs (3)
62_settingsWindow = window; 296_settingsWindow = window; 362_settingsWindow = 0;
52 references to _settingsWindow
aspire-tray (52)
TrayApplication.Actions.cs (4)
152_modalOwner = _settingsWindow != 0 ? _settingsWindow : _window; 179_modalOwner = _settingsWindow != 0 ? _settingsWindow : _window;
TrayApplication.cs (2)
118|| (_settingsWindow != 0 && NativeMethods.IsDialogMessage(_settingsWindow, ref message) != 0))
TrayApplication.NativeSmoke.cs (17)
412internal nint SettingsWindowForSmoke => _settingsWindow; 445NativeMethods.SendMessage(_settingsWindow, NativeMethods.WmClose, 0, 0); 446NativeSmokeHarness.Require(_settingsWindow == 0 && _settingsIcon == 0 454NativeSmokeHarness.Require(_settingsWindow != 0 && _settingsIcon != 0 && _settingsMenuFilter != 0, 458NativeSmokeHarness.Require(ReadControlText(_settingsWindow) == "Aspire Tray Settings" 459&& ReadControlText(NativeMethods.GetDlgItem(_settingsWindow, SettingsGeneralId)) == "General" 460&& ReadControlText(NativeMethods.GetDlgItem(_settingsWindow, SettingsAboutId)) == "About", 476for (var control = NativeMethods.GetWindow(_settingsWindow, 5); control != 0; control = NativeMethods.GetWindow(control, 2)) 497NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var windowBounds) != 0, "GetWindowRect(Settings window smoke)"); 513NativeSmokeHarness.Require(NativeMethods.IsChild(_settingsWindow, NativeMethods.GetFocus()) != 0, 521NativeCallException.Require(NativeMethods.GetMonitorInfo(NativeMethods.MonitorFromWindow(_settingsWindow, 2), ref monitor) != 0, 531NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var window) != 0, "GetWindowRect(Settings scroll smoke)"); 536NativeMethods.SendMessage(_settingsWindow, NativeMethods.WmVerticalScroll, 6, 0); // SB_TOP. 538NativeMethods.SendMessage(_settingsWindow, NativeMethods.WmVerticalScroll, 7, 0); // SB_BOTTOM. 540NativeCallException.Require(NativeMethods.GetScrollInfo(_settingsWindow, 1, ref scroll) != 0, "GetScrollInfo(Settings scroll smoke)"); 554NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings focus smoke)"); 557NativeCallException.Require(NativeMethods.ClientToScreen(_settingsWindow, ref origin) != 0, "ClientToScreen(Settings focus smoke)");
TrayApplication.Settings.cs (11)
47if (_settingsWindow != 0) 86NativeMethods.SendMessage(_settingsWindow, 0x401, SettingsCloseId, 0); // DM_SETDEFID. 129=> AddDialogControl(_settingsWindow, className, text, style | (className == "BUTTON" ? 0x4000u : 0), 147NativeMethods.ShowWindow(_settingsWindow, 9); // SW_RESTORE, including minimized windows. 151if (NativeMethods.SetForegroundWindow(_settingsWindow) == 0) 156if (NativeMethods.IsChild(_settingsWindow, focus) == 0 || NativeMethods.IsWindowEnabled(focus) == 0 247if (_settingsWindow != 0) 249NativeCallException.Require(NativeMethods.DestroyWindow(_settingsWindow) != 0, "DestroyWindow(Settings)"); 415var localFocus = _menuOpen || message.Window == _window || (_settingsWindow != 0 416&& (message.Window == _settingsWindow || NativeMethods.IsChild(_settingsWindow, message.Window) != 0));
TrayApplication.SettingsAppearance.cs (16)
18var dpi = NativeMethods.GetDpiForWindow(_settingsWindow); 86NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var window) != 0, "GetWindowRect(Settings)"); 87NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings)"); 89NativeCallException.Require(NativeMethods.GetMonitorInfo(NativeMethods.MonitorFromWindow(_settingsWindow, 2), ref monitor) != 0, 100NativeMethods.SetScrollInfo(_settingsWindow, 1, in scroll, 1); // SB_VERT; hidden when all content fits. 102NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out client) != 0, "GetClientRect(Settings scroll)"); 107NativeCallException.Require(NativeMethods.SetWindowPos(_settingsWindow, 0, x, y, width, height, 0x4 | 0x10) != 0, 115var dpi = NativeMethods.GetDpiForWindow(_settingsWindow); 127NativeCallException.Require(NativeMethods.RedrawWindow(_settingsWindow, 0, 0, 1 | 4 | 0x80) != 0, 137NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings focus)"); 157NativeMethods.SetScrollInfo(_settingsWindow, 1, in scroll, 1); 163NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings scroll)"); 181NativeCallException.Require(NativeMethods.GetScrollInfo(_settingsWindow, 1, ref scroll) != 0, "GetScrollInfo(Settings)"); 199var dc = NativeMethods.GetDC(_settingsWindow); 201var previous = NativeMethods.SelectObject(dc, NativeMethods.SendMessage(_settingsWindow, 0x31, 0, 0)); 216Cleanup(NativeMethods.ReleaseDC(_settingsWindow, dc) != 0, "ReleaseDC(Settings measure)");
TrayApplication.StopConfirmation.cs (2)
24_modalOwner = _settingsWindow != 0 ? _settingsWindow : _window;