LoadRect.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #if !defined(AFX_LoadRect_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
  2. #define AFX_LoadRect_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // LoadRect.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // LoadRect dialog
  10. #include "MyBmpButton2.h"
  11. #include "resource.h"
  12. #include <afxtempl.h>
  13. #include "shockwaveflash.h"
  14. class LoadRect : public CDialog
  15. {
  16. int m_dtx;
  17. int m_dty;
  18. CString m_liapath;
  19. // Construction
  20. public:
  21. void SetMargins(int dtx, int dty);
  22. BOOL Load();
  23. CShockwaveFlash m_flashctrl;
  24. Image *m_pBk;
  25. void SetLiaPath(CString path);
  26. void OnPaint2(CWnd *pWnd);
  27. LoadRect(DWORD id, CWnd *pParent);
  28. CWnd *m_pParent;
  29. CArray<DWORD,DWORD>m_picarray;
  30. CArray<CRect,CRect>m_rcarray;
  31. LoadRect(CWnd* pParent = NULL); // standard constructor
  32. enum { IDD = IDD_DLGmydlg };
  33. public:
  34. virtual BOOL PreTranslateMessage(MSG* pMsg);
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. protected:
  38. virtual BOOL OnInitDialog();
  39. afx_msg void OnPaint();
  40. afx_msg void OnDestroy();
  41. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  42. virtual void OnOK();
  43. virtual void OnCancel();
  44. afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
  45. DECLARE_EVENTSINK_MAP()
  46. //}}AFX_MSG
  47. //afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
  48. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #endif