Initial commit

This commit is contained in:
Cesar Gimenes
2021-09-18 14:10:47 -03:00
parent 46f2228e15
commit e2607a94c0
131 changed files with 5312 additions and 0 deletions

35
nkosrc4/Neko98/Tray.h Executable file
View 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