ShowCut.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #if !defined(AFX_ShowCut_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_ShowCut_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif
  6. #include <vector>
  7. using namespace std;
  8. class ShowCut : public CDialog // ²Ã¼ôЧ¹ûͼ¶Ô»°¿ò;
  9. {
  10. // Construction
  11. public:
  12. CString m_branch;
  13. int FindArray2(CString title);
  14. CStringArray m_titlearray;
  15. BOOL GetSize();
  16. CStringArray m_namearray;
  17. CStringArray m_noarray;
  18. CArray<CRect,CRect>m_rcarray;
  19. CArray<CRect,CRect>m_widtharray;
  20. void AddSize(CString size);
  21. CString m_strOrderNum;
  22. CString m_size;
  23. CString m_name;
  24. int m_mode;
  25. void LoadPhotos();
  26. CStringArray m_patharray1;
  27. BOOL TerminateThread();
  28. void LoadThumbImages();
  29. ShowCut(CWnd* pParent = NULL); // standard constructor
  30. CString m_path;
  31. vector<CString> m_vFileName;
  32. // CListCtrl m_ListCtrl;
  33. CImageList m_ImageListThumb; // image list holding the thumbnails
  34. bool m_bRunning; // Flag to whether thread is on running or not
  35. bool m_bTerminate; // Flag to Thread to be terminated
  36. unsigned int m_dwThreadID; // Thread ID
  37. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  38. enum { IDD = IDD_DLGShowCut };
  39. CListCtrl m_List1;
  40. CComboBox m_combo1;
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. virtual BOOL OnInitDialog();
  44. afx_msg void OnDestroy();
  45. afx_msg void OnBUTdelall();
  46. afx_msg void OnBUTdel();
  47. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  48. DECLARE_MESSAGE_MAP()
  49. };
  50. #endif