mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-11-18 07:52:20 +00:00
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
34 lines
740 B
C++
34 lines
740 B
C++
#pragma once
|
|
#include "CWindow.h"
|
|
#include <memory>
|
|
|
|
class CConfigWindow;
|
|
|
|
class CNotifyWindow : public CWindow
|
|
{
|
|
static UINT s_taskbarCreated;
|
|
static ATOM s_atom;
|
|
|
|
NOTIFYICONDATA m_iconData;
|
|
HMENU m_menu;
|
|
bool closeRequested;
|
|
std::unique_ptr<CConfigWindow> m_config;
|
|
|
|
LRESULT onNotifyIcon(UINT uEvent, WORD wIconId, int x, int y);
|
|
void registerIcon();
|
|
|
|
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
|
|
virtual LRESULT onCreate() override;
|
|
virtual LRESULT onClose() override;
|
|
virtual LRESULT onDestroy() override;
|
|
virtual LRESULT onFinal() override;
|
|
|
|
public:
|
|
CNotifyWindow();
|
|
~CNotifyWindow() override;
|
|
static bool registerClass();
|
|
|
|
HWND hwndDialog();
|
|
void close();
|
|
};
|