MyDlg.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #if !defined(AFX_MyDlg_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
  2. #define AFX_MyDlg_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MyDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // MyDlg dialog
  10. #include "MyBmpButton2.h"
  11. #include "resource.h"
  12. #include <afxtempl.h>
  13. #include "shockwaveflash.h"
  14. class MyDlg : public CDialog
  15. {
  16. CString m_liapath;
  17. // Construction
  18. public:
  19. CShockwaveFlash m_flashctrl;
  20. Image *m_pBk;
  21. void SetLiaPath(CString path);
  22. void OnPaint2(CWnd *pWnd);
  23. MyDlg(DWORD id, CWnd *pParent);
  24. CWnd *m_pParent;
  25. CArray<DWORD,DWORD>m_picarray;
  26. CArray<CRect,CRect>m_rcarray;
  27. MyDlg(CWnd* pParent = NULL); // standard constructor
  28. virtual void BtnClick(WPARAM wParam, LPARAM lParam)=0;
  29. virtual void Init()=0;
  30. virtual void Destory()=0;
  31. virtual BOOL PreTransMsg(MSG* pMsg)=0;
  32. virtual void OnFSCommand(LPCTSTR command, LPCTSTR args)=0;
  33. // Dialog Data
  34. //{{AFX_DATA(MyDlg)
  35. enum { IDD = IDD_DLGmydlg };
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(MyDlg)
  40. public:
  41. virtual BOOL PreTranslateMessage(MSG* pMsg);
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. // Generated message map functions
  48. //{{AFX_MSG(MyDlg)
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnPaint();
  51. afx_msg void OnDestroy();
  52. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  53. virtual void OnOK();
  54. virtual void OnCancel();
  55. afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
  56. DECLARE_EVENTSINK_MAP()
  57. //}}AFX_MSG
  58. afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
  59. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  60. DECLARE_MESSAGE_MAP()
  61. };
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_MyDlg_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)