ShowCut.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 // _MSC_VER > 1000
  6. // ShowCut.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowCut d ialog
  10. #include <vector>
  11. using namespace std;
  12. class ShowCut : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CString m_branch;
  17. int FindArray2(CString title);
  18. CStringArray m_titlearray;
  19. BOOL GetSize();
  20. CStringArray m_namearray;
  21. CStringArray m_noarray;
  22. CArray<CRect,CRect>m_rcarray;
  23. CArray<CRect,CRect>m_widtharray;
  24. void AddSize(CString size);
  25. CString m_id;
  26. CString m_size;
  27. CString m_name;
  28. int m_mode;
  29. void LoadPhotos();
  30. CStringArray m_patharray1;
  31. BOOL TerminateThread();
  32. void LoadThumbImages();
  33. ShowCut(CWnd* pParent = NULL); // standard constructor
  34. CString m_path;
  35. vector<CString> m_vFileName;
  36. // CListCtrl m_ListCtrl;
  37. CImageList m_ImageListThumb; // image list holding the thumbnails
  38. bool m_bRunning; // Flag to whether thread is on running or not
  39. bool m_bTerminate; // Flag to Thread to be terminated
  40. unsigned int m_dwThreadID; // Thread ID
  41. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  42. // Dialog Data
  43. //{{AFX_DATA(ShowCut)
  44. enum { IDD = IDD_DLGShowCut };
  45. CListCtrl m_List1;
  46. CComboBox m_combo1;
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(ShowCut)
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(ShowCut)
  58. virtual BOOL OnInitDialog();
  59. afx_msg void OnDestroy();
  60. afx_msg void OnBUTdelall();
  61. afx_msg void OnBUTdel();
  62. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_ShowCut_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)