MyDlg.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. enum { IDD = IDD_DLGmydlg };
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(MyDlg)
  39. public:
  40. virtual BOOL PreTranslateMessage(MSG* pMsg);
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. // Generated message map functions
  47. //{{AFX_MSG(MyDlg)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnPaint();
  50. afx_msg void OnDestroy();
  51. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  52. virtual void OnOK();
  53. virtual void OnCancel();
  54. afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
  55. DECLARE_EVENTSINK_MAP()
  56. //}}AFX_MSG
  57. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  58. #ifdef VC_60
  59. afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
  60. afx_msg void OnOutbarNotify (WPARAM wParam, LPARAM lParam);
  61. //
  62. #else
  63. afx_msg LRESULT OnBtnClick (WPARAM wParam, LPARAM lParam);
  64. //afx_msg LRESULT OnComMsg (WPARAM wParam, LPARAM lParam);
  65. afx_msg LRESULT OnOutbarNotify (WPARAM wParam, LPARAM lParam);
  66. #endif
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_MyDlg_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)