1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #if !defined(AFX_MYANIMATEWINDOW_H__4247A734_297A_4A7F_8FD9_680893ED9D6D__INCLUDED_)
- #define AFX_MYANIMATEWINDOW_H__4247A734_297A_4A7F_8FD9_680893ED9D6D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyAnimateWindow.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // MyAnimateWindow dialog
- class MyAnimateWindow : public CDialog
- {
- int m_mode;
- int m_mode2;
- CRect m_rc;
- int m_times;
- CRect m_rcneedclear;
- // Construction
- public:
- bool MagicFun16(Image *hSrcDC, int x, int y, HDC hDestDC, int xd, int yd, int width, int height, int nDelay, int nStep);
- bool MagicFun20(Image *hSrcDC, int x, int y, HDC hDestDC, int xd, int yd, int width, int height, int nDelay, int nStep);
- bool m_bRunning; // Flag to whether thread is on running or not
- bool m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread; // Thread and Event handle
- bool m_bRunning2; // Flag to whether thread is on running or not
- bool m_bTerminate2; // Flag to Thread to be terminated
- unsigned int m_dwThreadID2; // Thread ID
- HANDLE m_hThread2; // Thread and Event handle
- bool m_bRunning3; // Flag to whether thread is on running or not
- bool m_bTerminate3; // Flag to Thread to be terminated
- unsigned int m_dwThreadID3; // Thread ID
- HANDLE m_hThread3; // Thread and Event handle
- BOOL TerminateThread();
- BOOL TerminateThread1();
- BOOL TerminateThread2();
- BOOL TerminateThread3();
- void DrawEffect1(CDC *pDC);
- int m_effect;
- BOOL ChenkOver();
- int m_time;
- CRect *m_pRc;
- void ShowAlpha();
- CDialog *m_pParent;
- void MyExit();
- Image *m_pbmp;
- Image *m_pImg;
- void SetImage(Image *img);
- MyAnimateWindow(CWnd* pParent = NULL); // standard constructor
- enum {
- IDD = IDD_DLGAnimateWindow
- };
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- protected:
- virtual void OnOK();
- virtual void OnCancel();
- virtual BOOL OnInitDialog();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnPaint();
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif
|