home *** CD-ROM | disk | FTP | other *** search
- // TaskButton.h: interface for the CTaskButton class.
- //
- //////////////////////////////////////////////////////////////////////
-
- #if !defined(AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_)
- #define AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- #include "ButtonImage.h"
- #include "ImageMenu.h"
- #include "About.h"
-
- class CTaskButton : public CButtonImage
- {
- public:
- CTaskButton();
- virtual ~CTaskButton();
- void Create(UINT ID,HWND parent,HINSTANCE parentInstance,BYTE imageFlags,SIZE imgSz);
- protected:
- // SIZE m_szMoveCapture;
- // POINT m_ptMoveCapture;
- LRESULT WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
- void OnContextMenu(WPARAM wParam, LPARAM lParam);
- void OnMouseMove(LPARAM lParam);
- void OnClick(HWND hWnd,LPARAM lParam);
-
- bool m_bMoveCapture;
- CImageMenu *m_imContext;
- };
-
- #endif // !defined(AFX_TASKBUTTON_H__EF869EB7_90CC_41F1_91E0_F633EE609C0F__INCLUDED_)
-