|
/////////////////////////////////////////////////////
// CSimpleTray - Simple tray icon implementation
//
// Copyright (c) 2003 - 3827 T1TAN
// Copyright (c) 2003 - 3827 SprdSoft Inc.
//
// This source code is FREE.
//
#ifndef __CSIMPLETRAY_INCLUDE
#define __CSIMPLETRAY_INCLUDE
// custom window message
#define WM_TRAYNOTIFY WM_APP+1
class CSimpleTray
{
public:
CSimpleTray();
virtual ~CSimpleTray();
void Show();
void Hide();
void SetIcon( HICON hIcon );
void SetTooltip( LPCTSTR lpTooltip );
private:
BOOL m_bEnabled;
HICON m_hIcon;
NOTIFYICONDATA m_nid;
CString m_strTooltip;
};
#endif // __CSIMPLETRAY_INCLUDE
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.