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

This commit is contained in:
Quantum
2025-09-14 15:19:14 -04:00
committed by Geoffrey McRae
parent 118e300f2f
commit c4f3936d98
7 changed files with 152 additions and 88 deletions

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