TrayIcon.h
上传用户:songshun
上传日期:2007-01-04
资源大小:51k
文件大小:2k
源码类别:

按钮控件

开发平台:

Visual C++

  1. //===========================================================================
  2. //
  3. // HomeWork from Belgium Not licensed software  
  4. // 1999 - 2000 No rights reserved
  5. //
  6. //===========================================================================
  7. //
  8. // Project/Product : Iconizer DLL
  9. //  FileName : TrayIcon.h
  10. // Author(s) : Bart Gysens
  11. //
  12. // Description : Declaration of CTrayIcon class
  13. //
  14. // Classes : CTrayIcon
  15. //
  16. // Information :
  17. //   Compiler(s) : Visual C++ 6.0
  18. //   Target(s) : Windows 95/98 and Windows NT (x86)
  19. //   Editor : Visual C++ 6.0 internal editor
  20. //
  21. // History
  22. // Vers.  Date      Aut.  Type     Description
  23. //  -----  --------  ----  -------  -----------------------------------------
  24. // 1.00   22 05 99  BG    Create   Original
  25. //
  26. //===========================================================================
  27. #ifndef _TRAYICON_H_INCLUDED__
  28. #define _TRAYICON_H_INCLUDED__
  29. #include "hooklist.h"
  30. //===========================================================================
  31. // Macros and typedefs
  32. //===========================================================================
  33. #define WM_NOTIFYICON ( WM_USER + 0x543 )
  34. //===========================================================================
  35. // 
  36. // Class : CTrayIcon
  37. // Author(s) : Bart Gysens
  38. //
  39. // Description : Declaration of the CTrayIcon class
  40. //
  41. // Comments : none
  42. //
  43. // History : 1.00  : Create
  44. //
  45. //===========================================================================
  46. class CTrayIcon
  47. {
  48. // Member functions
  49. public:
  50. CTrayIcon();
  51. public:
  52. void AddTrayIcon( HWND hWnd );
  53. void DelTrayIcon( HWND hWnd );
  54. public:
  55. virtual void OnNotifyIcon( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  56. protected:
  57. HICON GetAppIcon ( HWND hWnd );
  58. BOOL  TrayMessage( HWND hWnd, DWORD dMsg );
  59. };
  60. #endif // _TRAYICON_H_INCLUDED__