ShowPic3.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #if !defined(AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShowPic3.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowPic3 dialog
  10. #include "MultiLineListBox.h"
  11. #include <vector>
  12. using namespace std;
  13. class ShowPic3 : public CDialog
  14. {
  15. CStringArray m_idarray;
  16. CStringArray m_datearray;
  17. CString g_path1,g_path2,g_path3,g_path4;
  18. CString m_type;
  19. CArray<CStringArray, CStringArray>m_List1array;
  20. // Construction
  21. public:
  22. void ShowPhoto4();
  23. void ShowPhoto3();
  24. void ShowPhoto2();
  25. void ShowPhoto1();
  26. CString m_id;
  27. CString m_name;
  28. void LoadPhotos();
  29. CStringArray m_patharray1;
  30. CStringArray m_dirarray1;
  31. CStringArray m_dirarray2;
  32. CStringArray m_dirarray3;
  33. CStringArray m_dirarray4;
  34. BOOL TerminateThread();
  35. void LoadThumbImages();
  36. ShowPic3(CWnd* pParent = NULL); // standard constructor
  37. CString m_path;
  38. vector<CString> m_vFileName;
  39. CImageList m_ImageListThumb; // image list holding the thumbnails
  40. bool m_bRunning; // Flag to whether thread is on running or not
  41. bool m_bTerminate; // Flag to Thread to be terminated
  42. unsigned int m_dwThreadID; // Thread ID
  43. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  44. // Dialog Data
  45. //{{AFX_DATA(ShowPic3)
  46. enum { IDD = IDD_DLGShowPic3 };
  47. CComboBox m_combo1;
  48. CMultiLineListBox m_List2;
  49. CListCtrl m_List1;
  50. BOOL m_check1;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(ShowPic3)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(ShowPic3)
  62. virtual BOOL OnInitDialog();
  63. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnDestroy();
  65. afx_msg void OnBUTdelall();
  66. afx_msg void OnBUTdel();
  67. afx_msg void OnSelchangeList2();
  68. afx_msg void OnBTNshow1();
  69. afx_msg void OnBTNshow2();
  70. afx_msg void OnBTNshow3();
  71. afx_msg void OnBTNshow4();
  72. afx_msg void OnBUTdel1();
  73. afx_msg void OnBUTdel2();
  74. afx_msg void OnBUTdel3();
  75. afx_msg void OnBUTdel4();
  76. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  77. afx_msg void OnSelchangeCombo1();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)