00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008 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 #include <fsString.h> 00014 00015 class fsTrayIconMgr 00016 { 00017 public: 00018 00019 BOOL Create (HWND hWnd, UINT *pIcons, UINT cIcons, LPCSTR pszTooltip, UINT uCallbackMsg); 00020 00021 void TestIcon(); 00022 00023 BOOL ShowIcon (int iIndex); 00024 00025 void Remove(); 00026 00027 BOOL ShowBalloon (LPCSTR pszInfo, LPCSTR pszInfoTitle, DWORD dwNiifIcon = NIIF_INFO); 00028 00029 fsTrayIconMgr(); 00030 virtual ~fsTrayIconMgr(); 00031 00032 protected: 00033 UINT m_cbNIDSize; 00034 int m_iCurIconIndex; 00035 fsString m_strTip; 00036 UINT m_uCallbackMsg; 00037 UINT m_nID; 00038 00039 void LoadIcons (UINT* pIcons, UINT cIcons); 00040 00041 BOOL InitializeTrayIcon (); 00042 00043 UINT m_cIcons; 00044 HICON *m_pIcons; 00045 HWND m_hWnd; 00046 }; 00047 00048 #endif
1.5.6