00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_FSTRAYICONMGR_H__0CFF722C_1D89_4E91_9892_4EEAE26390A1__INCLUDED_) 00007 #define AFX_FSTRAYICONMGR_H__0CFF722C_1D89_4E91_9892_4EEAE26390A1__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 class fsTrayIconMgr 00014 { 00015 public: 00016 00017 BOOL Create (HWND hWnd, UINT *pIcons, UINT cIcons, LPCSTR pszTooltip, UINT uCallbackMsg); 00018 00019 void TestIcon(); 00020 00021 BOOL ShowIcon (int iIndex); 00022 00023 void Remove(); 00024 00025 BOOL ShowBalloon (LPCSTR pszInfo, LPCSTR pszInfoTitle, DWORD dwNiifIcon = NIIF_INFO); 00026 00027 fsTrayIconMgr(); 00028 virtual ~fsTrayIconMgr(); 00029 00030 protected: 00031 UINT m_cbNIDSize; 00032 int m_iCurIconIndex; 00033 fsString m_strTip; 00034 UINT m_uCallbackMsg; 00035 UINT m_nID; 00036 00037 void LoadIcons (UINT* pIcons, UINT cIcons); 00038 00039 BOOL InitializeTrayIcon (); 00040 00041 UINT m_cIcons; 00042 HICON *m_pIcons; 00043 HWND m_hWnd; 00044 }; 00045 00046 #endif
1.5.6