[idd] helper: split CWindow into base class and CNotifyWindow

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2025-09-15 09:22:27 +10:00
1 parent 118e300f2f
commit c4f3936d98
7 files changed
+152 -88

No files matched your search

+24
View 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();
};