2 writes to _panelWindow
aspire-tray (2)
TrayApplication.Panel.cs (2)
153
_panelWindow
= NativeMethods.CreateWindowEx(NativeMethods.WsExToolWindow | NativeMethods.WsExTopmost, PanelClassName, "Aspire",
945
_panelWindow
= 0;
33 references to _panelWindow
aspire-tray (33)
TrayApplication.NativeSmoke.cs (7)
124
NativeCallException.Require(NativeMethods.GetWindowRect(
_panelWindow
, out var rect) != 0, "GetWindowRect(capture)");
126
PanelScale,
_panelWindow
, (rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top));
234
NativeMethods.SendMessage(
_panelWindow
, NativeMethods.WmMouseMove, 0, point);
235
NativeMethods.SendMessage(
_panelWindow
, NativeMethods.WmLeftButtonDown, 1, point);
236
NativeMethods.SendMessage(
_panelWindow
, NativeMethods.WmLeftButtonUp, 0, point);
247
NativeMethods.SendMessage(
_panelWindow
, NativeMethods.WmKeyDown, (nuint)virtualKey, 0);
285
NativeMethods.UpdateWindow(
_panelWindow
);
TrayApplication.Panel.cs (20)
85
if (NativeMethods.SetForegroundWindow(
_panelWindow
) == 0)
91
NativeMethods.SetFocus(
_panelWindow
);
123
NativeMethods.ShowWindow(
_panelWindow
, 0); // SW_HIDE
128
if (
_panelWindow
!= 0)
155
NativeCallException.Require(
_panelWindow
!= 0, "CreateWindowExW(flyout)");
160
_panelUsesDwmCorners = NativeMethods.DwmSetWindowAttribute(
_panelWindow
, 33, &preference, sizeof(int)) >= 0;
213
NativeCallException.Require(NativeMethods.SetWindowPos(
_panelWindow
, -1, x, y, width, height, show ? 0x40u : 0x10u) != 0,
220
if (region != 0 && NativeMethods.SetWindowRgn(
_panelWindow
, region, 1) == 0)
225
NativeMethods.InvalidateRect(
_panelWindow
, 0, 0);
247
NativeMethods.WsPopup | NativeMethods.TtsAlwaysTip | NativeMethods.TtsNoPrefix, 0, 0, 0, 0,
_panelWindow
, 0, _module, 0);
258
var tool = new NativeMethods.ToolInfo { Size = (uint)sizeof(NativeMethods.ToolInfo), Window =
_panelWindow
, Id = (nuint)i };
271
Window =
_panelWindow
,
314
NativeMethods.GetWindowRect(
_panelWindow
, out var rect);
321
NativeMethods.InvalidateRect(
_panelWindow
, 0, 0);
429
var dc = NativeMethods.BeginPaint(
_panelWindow
, out var paint);
436
NativeMethods.GetClientRect(
_panelWindow
, out var client);
462
NativeMethods.EndPaint(
_panelWindow
, in paint);
941
if (
_panelWindow
!= 0)
944
Cleanup(NativeMethods.DestroyWindow(
_panelWindow
) != 0, "DestroyWindow(flyout)");
980
if (s_current is { } application && window == application.
_panelWindow
)
TrayApplication.PanelAutomation.cs (6)
125
var rootId = stackalloc int[2] { 42, (int)
_panelWindow
};
173
NativeMethods.GetWindowRect(
_panelWindow
, out var window);
189
NativeMethods.GetWindowRect(
_panelWindow
, out var window);
216
NativeMethods.UiaReturnRawElementProvider(
_panelWindow
, 0, 0, 0);
289
Marshal.ThrowExceptionForHR(NativeMethods.UiaHostProviderFromHwnd(owner.
_panelWindow
, out var host));
433
if (NativeMethods.PostMessage(owner.
_panelWindow
, WmPanelAutomationInvoke, (nuint)id, 0) == 0)