LoadRect.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. // Dialog Data
  33. //{{AFX_DATA(LoadRect)
  34. enum { IDD = IDD_DLGmydlg };
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(LoadRect)
  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(LoadRect)
  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 OnBtnClick (WPARAM wParam, LPARAM lParam);
  58. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_LoadRect_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)