Files
rat/nkosrc4/Neko98/Tray.h
Cesar Gimenes e2607a94c0 Initial commit
2021-09-18 14:10:47 -03:00

36 lines
692 B
C++
Executable File

/************************************
Tray Class: Very simple interface
onto the system tray
*************************************/
#ifndef _TRAY_HPP
#define _TRAY_HPP
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
//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