AniButton.h
上传用户:royluo
上传日期:2007-01-05
资源大小:1584k
文件大小:3k
源码类别:

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   AniButton.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Implements the animated buttons used in the dialogs.
  11. *                       
  12. *                                                                             
  13. *   Authors: Eran Yariv - 28484475                                           
  14. *            Moshe Zur  - 24070856                                           
  15. *                                                                            
  16. *                                                                            
  17. *   Date: 23/09/98                                                           
  18. *                                                                            
  19. ******************************************************************************/
  20. #if !defined(AFX_ANIBUTTON_H__E9AC4132_284A_11D1_931F_00A0247B4CE3__INCLUDED_)
  21. #define AFX_ANIBUTTON_H__E9AC4132_284A_11D1_931F_00A0247B4CE3__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // AniButton.h : header file
  26. //
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CAniButton window
  29. class CAniButton : public CButton
  30. {
  31. // Construction
  32. public:
  33.     CAniButton();
  34. // Attributes
  35. public:
  36.     BOOL Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
  37. // Operations
  38. public:
  39.     UINT m_nAniID;
  40. // Overrides
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CAniButton)
  43.     //}}AFX_VIRTUAL
  44. // Implementation
  45. public:
  46.     void LoadAVI(UINT nAniID);
  47.     virtual ~CAniButton();
  48.     // Generated message map functions
  49. protected:
  50.     CAnimateCtrl    m_AnimateCtrl;
  51.     BOOL m_bPlaying;
  52.     //{{AFX_MSG(CAniButton)
  53.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  54.     //}}AFX_MSG
  55.     virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  56.     void DrawButton(CDC* pDC, UINT nState, CRect rect);
  57.     DECLARE_MESSAGE_MAP()
  58.     
  59. };
  60. /////////////////////////////////////////////////////////////////////////////
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_ANIBUTTON_H__E9AC4132_284A_11D1_931F_00A0247B4CE3__INCLUDED_)