/************************************ Tray Class: Very simple interface onto the system tray *************************************/ #ifndef _TRAY_HPP #define _TRAY_HPP #define WIN32_LEAN_AND_MEAN #include //taskbar notification message #define MY_NOTIFYICON (WM_USER+32) class CTray { public: CTray( HINSTANCE hInstance ) { m_uIconCount = 0; m_hInstance = hInstance; }; BOOL AddIcon( HWND hWnd, HICON hIcon, UINT uID ); BOOL RemoveIcon( HWND hWnd, UINT uID ); void ShowPopupMenu( HWND hWnd ); UINT GetCount() { return m_uIconCount; }; private: UINT m_uIconCount; HINSTANCE m_hInstance; }; #endif