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

按钮控件

开发平台:

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 : HookList.h
  10. // Author(s) : Bart Gysens
  11. //
  12. // Description : Header file for the CHookList class
  13. //
  14. // Classes : CHookItem
  15. // CHookList
  16. //
  17. // Information :
  18. //   Compiler(s) : Visual C++ 6.0
  19. //   Target(s) : Windows 95/98 and Windows NT (x86)
  20. //   Editor : Visual C++ 5.0 internal editor
  21. //
  22. // History
  23. // Vers.  Date      Aut.  Type     Description
  24. //  -----  --------  ----  -------  -----------------------------------------
  25. // 1.00   22 05 99  BG    Create   Original
  26. //
  27. //===========================================================================
  28. #ifndef _HOOKLIST_H_INCLUDED__
  29. #define _HOOKLIST_H_INCLUDED__
  30. //===========================================================================
  31. // Macros and typedefs
  32. //===========================================================================
  33. //===========================================================================
  34. // 
  35. // Class : CHookItem
  36. // Author(s) : Bart Gysens
  37. //
  38. // Description : Declaration of the CHookItem class
  39. //
  40. // Comments : This class is used by the CCom class
  41. //
  42. // History : 1.00  : Create
  43. //
  44. //===========================================================================
  45. class CHookItem
  46. {
  47. // Member variables
  48. public:
  49. HWND m_hWnd ;
  50. WNDPROC m_HookWndProc ;
  51. WNDPROC m_DefWndProc ;
  52. BOOL m_LBtnDown ;
  53. // Member functions
  54. public:
  55. CHookItem( HWND hWnd, WNDPROC hookWndProc, WNDPROC defWndProc )
  56. {
  57. m_hWnd   = hWnd ;
  58. m_HookWndProc = hookWndProc ;
  59. m_DefWndProc  = defWndProc ;
  60. m_LBtnDown   = FALSE ;
  61. }
  62. };
  63. //===========================================================================
  64. // 
  65. // Class : CHookList
  66. // Author(s) : Bart Gysens
  67. //
  68. // Description : Declaration of the CHookList class
  69. //
  70. // Comments : This class is used by the CCom class
  71. //
  72. // History : 1.00  : Create
  73. //
  74. //===========================================================================
  75. class CHookList
  76. {
  77. // Member variables
  78. protected:
  79. UINT m_NbrItems ;
  80. CHookItem * m_pHookItem ;
  81. // Member functions
  82. public:
  83. CHookList ();
  84. ~CHookList ();
  85. public:
  86. BOOL AddItem ( CHookItem& Item ) ;
  87. CHookItem * GetItem ( HWND hWnd ) ;
  88. BOOL DelItem ( HWND hWnd ) ;
  89. BOOL DelAllItems () ;
  90. };
  91. #endif // _HOOKLIST_H_INCLUDED__