MyAnimateWindow.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. enum {
  50. IDD = IDD_DLGAnimateWindow
  51. };
  52. public:
  53. virtual BOOL PreTranslateMessage(MSG* pMsg);
  54. protected:
  55. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  56. protected:
  57. virtual void OnOK();
  58. virtual void OnCancel();
  59. virtual BOOL OnInitDialog();
  60. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  61. afx_msg void OnPaint();
  62. afx_msg void OnTimer(UINT nIDEvent);
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. #endif