123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #if !defined(AFX_CUTPHOTO_H__1B013126_5FE2_482B_9BF5_0D842AE7C02D__INCLUDED_)
- #define AFX_CUTPHOTO_H__1B013126_5FE2_482B_9BF5_0D842AE7C02D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif
- class CutPhoto : public CDialog // 剪裁对话框;
- {
- CString m_name; // 裁剪方案名称;
- CString m_size;
- float m_fscale;
- CRect m_photorcbak;
- CRect m_rcRealCuttingArea; // 在原图上的实际裁剪尺寸;
- CRect m_rcShowCutImage; // 控件1区域 的裁剪区域;
- #if JEFF_TEST_ON
- CRect m_rcStatc1; // 控件1区域;
- CRect m_rcStatc2; // 控件2区域;
- CRect m_rtSmall; // 控件2区域 的缩略图区域;
- CPoint m_ptStart;
- CPoint m_ptEndof;
- float m_fZoomScale;
- #endif
- CStringArray namearray;
- CArray<int, int>widtharray;
- CArray<int, int>heightarray;
- // Construction
- public:
- int m_photowidth; // 相片宽;
- int m_photoheight; // 相片高;
- CString m_strOrderNumber;
- CString m_strImgName;
- void RefreshRc();
- int m_width; // 裁剪方案:宽值;
- int m_height; // 裁剪方案:高值;
- void GetSize();
- CutPhoto(CWnd* pParent = NULL); // standard constructor
- Image *m_pImg; // SmallImage "s"小图,由CShowPic22传入;
- enum { IDD = IDD_DLGCutPhoto };
- CSliderCtrl m_sliderctrl;
- CComboBox m_combo1;
- int m_slider1;
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg void OnButton7();
- afx_msg void OnSelchangeCombo1();
- afx_msg void OnButton1();
- afx_msg void OnButton2();
- afx_msg void OnButton3();
- afx_msg void OnButton4();
- afx_msg void OnButton5();
- afx_msg void OnButton6();
- afx_msg void OnButton10();
- afx_msg void OnButton32();
- afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnOutofmemorySlider1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult);
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- };
- #endif
|