MyAnimateWindow.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #if !defined(AFX_MYANIMATEWINDOW_H__4247A734_297A_4A7F_8FD9_680893ED9D6D__INCLUDED_)
  2. #define AFX_MYANIMATEWINDOW_H__4247A734_297A_4A7F_8FD9_680893ED9D6D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MyAnimateWindow.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // MyAnimateWindow dialog
  10. class MyAnimateWindow : public CDialog
  11. {
  12. int m_mode;
  13. int m_mode2;
  14. CRect m_rc;
  15. int m_times;
  16. CRect m_rcneedclear;
  17. // Construction
  18. public:
  19. bool MagicFun16( Image *hSrcDC , int x , int y , HDC hDestDC , int xd , int yd , int width , int height , int nDelay, int nStep);
  20. bool MagicFun20( Image *hSrcDC , int x , int y , HDC hDestDC , int xd , int yd , int width , int height , int nDelay, int nStep);
  21. bool m_bRunning; // Flag to whether thread is on running or not
  22. bool m_bTerminate; // Flag to Thread to be terminated
  23. unsigned int m_dwThreadID; // Thread ID
  24. HANDLE m_hThread; // Thread and Event handle
  25. bool m_bRunning2; // Flag to whether thread is on running or not
  26. bool m_bTerminate2; // Flag to Thread to be terminated
  27. unsigned int m_dwThreadID2; // Thread ID
  28. HANDLE m_hThread2; // Thread and Event handle
  29. bool m_bRunning3; // Flag to whether thread is on running or not
  30. bool m_bTerminate3; // Flag to Thread to be terminated
  31. unsigned int m_dwThreadID3; // Thread ID
  32. HANDLE m_hThread3; // Thread and Event handle
  33. BOOL TerminateThread();
  34. BOOL TerminateThread1();
  35. BOOL TerminateThread2();
  36. BOOL TerminateThread3();
  37. void DrawEffect1(CDC *pDC);
  38. int m_effect;
  39. BOOL ChenkOver();
  40. int m_time;
  41. CRect *m_pRc;
  42. void ShowAlpha();
  43. CDialog *m_pParent;
  44. void MyExit();
  45. Image *m_pbmp;
  46. Image *m_pImg;
  47. void SetImage(Image *img);
  48. MyAnimateWindow(CWnd* pParent = NULL); // standard constructor
  49. // Dialog Data
  50. //{{AFX_DATA(MyAnimateWindow)
  51. enum { IDD = IDD_DLGAnimateWindow };
  52. // NOTE: the ClassWizard will add data members here
  53. //}}AFX_DATA
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(MyAnimateWindow)
  57. public:
  58. virtual BOOL PreTranslateMessage(MSG* pMsg);
  59. protected:
  60. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. protected:
  64. // Generated message map functions
  65. //{{AFX_MSG(MyAnimateWindow)
  66. virtual void OnOK();
  67. virtual void OnCancel();
  68. virtual BOOL OnInitDialog();
  69. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  70. afx_msg void OnPaint();
  71. afx_msg void OnTimer(UINT nIDEvent);
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. };
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  77. #endif // !defined(AFX_MYANIMATEWINDOW_H__4247A734_297A_4A7F_8FD9_680893ED9D6D__INCLUDED_)