caption.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 : caption.h
  10. // Author(s) : Bart Gysens
  11. //
  12. // Description : Declaration of caption related functionality
  13. //
  14. // Classes : CCaptionRect
  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 _CAPTION_H_INCLUDED__
  28. #define _CAPTION_H_INCLUDED__
  29. //===========================================================================
  30. // Macros and typedefs
  31. //===========================================================================
  32. //===========================================================================
  33. // 
  34. // Class : CCaptionRect
  35. // Author(s) : Bart Gysens
  36. //
  37. // Description : Declaration of the CCaptionRect class
  38. //
  39. // Comments : none
  40. //
  41. // History : 1.00  : Create
  42. //
  43. //===========================================================================
  44. class CCaption
  45. {
  46. // Member functions
  47. public:
  48. CCaption();
  49. protected:
  50. void CalcCaptionRect( HWND hWnd, RECT& Rect );
  51. void DrawIconize ( HDC hDc, int x, int y, int off );
  52. void DrawButtons ( HWND hWnd );
  53. public:
  54. void OnNcActivate ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  55. void OnNcPaint ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  56. void OnSetText ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  57. void OnNcLButtonDown( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  58. void OnNcLButtonUp ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  59. void OnNcMouseMove ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
  60. };
  61. #endif // _CAPTION_H_INCLUDED__