mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
runner: initial automatic update (#2141)
This commit is contained in:
@@ -164,17 +164,16 @@ void start_tray_icon()
|
||||
{
|
||||
UINT id_tray_icon = wm_icon_notify = RegisterWindowMessageW(L"WM_PowerToysIconNotify");
|
||||
|
||||
static LPCWSTR class_name = L"PToyTrayIconWindow";
|
||||
WNDCLASS wc = {};
|
||||
wc.hCursor = LoadCursor(nullptr, IDC_ARROW);
|
||||
wc.hInstance = h_instance;
|
||||
wc.lpszClassName = class_name;
|
||||
wc.lpszClassName = pt_tray_icon_window_class;
|
||||
wc.style = CS_HREDRAW | CS_VREDRAW;
|
||||
wc.lpfnWndProc = tray_icon_window_proc;
|
||||
wc.hIcon = icon;
|
||||
RegisterClass(&wc);
|
||||
auto hwnd = CreateWindowW(wc.lpszClassName,
|
||||
L"PToyTrayIconWindow",
|
||||
pt_tray_icon_window_class,
|
||||
WS_OVERLAPPEDWINDOW | WS_POPUP,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
|
||||
Reference in New Issue
Block a user