CutPhoto.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #if !defined(AFX_CUTPHOTO_H__1B013126_5FE2_482B_9BF5_0D842AE7C02D__INCLUDED_)
  2. #define AFX_CUTPHOTO_H__1B013126_5FE2_482B_9BF5_0D842AE7C02D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif
  6. class CutPhoto : public CDialog // 剪裁对话框;
  7. {
  8. CString m_name; // 裁剪方案名称;
  9. CString m_size;
  10. float m_fscale;
  11. CRect m_photorcbak;
  12. CRect m_rcRealCuttingArea; // 在原图上的实际裁剪尺寸;
  13. CRect m_rcShowCutImage; // 控件1区域 的裁剪区域;
  14. #if JEFF_TEST_ON
  15. CRect m_rcStatc1; // 控件1区域;
  16. CRect m_rcStatc2; // 控件2区域;
  17. CRect m_rtSmall; // 控件2区域 的缩略图区域;
  18. CPoint m_ptStart;
  19. CPoint m_ptEndof;
  20. float m_fZoomScale;
  21. #endif
  22. CStringArray namearray;
  23. CArray<int, int>widtharray;
  24. CArray<int, int>heightarray;
  25. // Construction
  26. public:
  27. int m_photowidth; // 相片宽;
  28. int m_photoheight; // 相片高;
  29. CString m_strOrderNumber;
  30. CString m_strImgName;
  31. void RefreshRc();
  32. int m_width; // 裁剪方案:宽值;
  33. int m_height; // 裁剪方案:高值;
  34. void GetSize();
  35. CutPhoto(CWnd* pParent = NULL); // standard constructor
  36. Image *m_pImg; // SmallImage "s"小图,由CShowPic22传入;
  37. enum { IDD = IDD_DLGCutPhoto };
  38. CSliderCtrl m_sliderctrl;
  39. CComboBox m_combo1;
  40. int m_slider1;
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. virtual BOOL OnInitDialog();
  44. afx_msg void OnPaint();
  45. afx_msg void OnButton7();
  46. afx_msg void OnSelchangeCombo1();
  47. afx_msg void OnButton1();
  48. afx_msg void OnButton2();
  49. afx_msg void OnButton3();
  50. afx_msg void OnButton4();
  51. afx_msg void OnButton5();
  52. afx_msg void OnButton6();
  53. afx_msg void OnButton10();
  54. afx_msg void OnButton32();
  55. afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnOutofmemorySlider1(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult);
  58. DECLARE_MESSAGE_MAP()
  59. public:
  60. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  61. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  62. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  63. };
  64. #endif