home *** CD-ROM | disk | FTP | other *** search
/ PC Administrator / spravce.iso / TaskModule / src / TaskButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-10  |  1.0 KB  |  35 lines

  1. // TaskButton.h: interface for the CTaskButton class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_)
  6. #define AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "ButtonImage.h"
  13. #include "ImageMenu.h"
  14. #include "About.h"
  15.  
  16. class CTaskButton : public CButtonImage  
  17. {
  18. public:
  19.     CTaskButton();
  20.     virtual ~CTaskButton();
  21.     void Create(UINT ID,HWND parent,HINSTANCE parentInstance,BYTE imageFlags,SIZE imgSz);
  22. protected:
  23. //    SIZE m_szMoveCapture;
  24. //    POINT m_ptMoveCapture;
  25.     LRESULT WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
  26.     void OnContextMenu(WPARAM wParam, LPARAM lParam);
  27.     void OnMouseMove(LPARAM lParam);
  28.     void OnClick(HWND hWnd,LPARAM lParam);
  29.  
  30.     bool m_bMoveCapture;
  31.     CImageMenu *m_imContext;
  32. };
  33.  
  34. #endif // !defined(AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_)
  35.