Initial commit
This commit is contained in:
35
nkosrc4/Neko98/Tray.h
Executable file
35
nkosrc4/Neko98/Tray.h
Executable file
@@ -0,0 +1,35 @@
|
||||
/************************************
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user