mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[idd] helper: split CWindow into base class and CNotifyWindow
This commit is contained in:
24
idd/LGIddHelper/CNotifyWindow.h
Normal file
24
idd/LGIddHelper/CNotifyWindow.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "CWindow.h"
|
||||
|
||||
#define WM_NOTIFY_ICON (WM_USER)
|
||||
|
||||
class CNotifyWindow : public CWindow
|
||||
{
|
||||
static UINT s_taskbarCreated;
|
||||
static ATOM s_atom;
|
||||
|
||||
NOTIFYICONDATA m_iconData;
|
||||
HMENU m_menu;
|
||||
|
||||
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;
|
||||
|
||||
public:
|
||||
CNotifyWindow();
|
||||
~CNotifyWindow() override;
|
||||
static bool registerClass();
|
||||
};
|
Reference in New Issue
Block a user