CutPhoto.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 // _MSC_VER > 1000
  6. // CutPhoto.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CutPhoto dialog
  10. class CutPhoto : public CDialog
  11. {
  12. CString m_name;
  13. CString m_size;
  14. float m_fscale;
  15. CRect m_photorcbak;
  16. CRect m_photorc;
  17. CRect m_paintrc;
  18. CStringArray namearray;
  19. CArray<int,int>widtharray;
  20. CArray<int,int>heightarray;
  21. // Construction
  22. public:
  23. int m_photowidth;
  24. int m_photoheight;
  25. CString m_id;
  26. CString m_path;
  27. void RefreshRc();
  28. int m_width;
  29. int m_height;
  30. void GetSize();
  31. CutPhoto(CWnd* pParent = NULL); // standard constructor
  32. Image *m_pImg;
  33. // Dialog Data
  34. //{{AFX_DATA(CutPhoto)
  35. enum { IDD = IDD_DLGCutPhoto };
  36. CSliderCtrl m_sliderctrl;
  37. CComboBox m_combo1;
  38. int m_slider1;
  39. //}}AFX_DATA
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(CutPhoto)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. // Generated message map functions
  49. //{{AFX_MSG(CutPhoto)
  50. virtual BOOL OnInitDialog();
  51. afx_msg void OnPaint();
  52. afx_msg void OnButton7();
  53. afx_msg void OnSelchangeCombo1();
  54. afx_msg void OnButton1();
  55. afx_msg void OnButton2();
  56. afx_msg void OnButton3();
  57. afx_msg void OnButton4();
  58. afx_msg void OnButton5();
  59. afx_msg void OnButton6();
  60. afx_msg void OnButton10();
  61. afx_msg void OnButton32();
  62. afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnOutofmemorySlider1(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult);
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_CUTPHOTO_H__1B013126_5FE2_482B_9BF5_0D842AE7C02D__INCLUDED_)