ShowSelPhoto.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #if !defined(AFX_ShowSelPhoto_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_ShowSelPhoto_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShowSelPhoto.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowSelPhoto dialog
  10. #include <vector>
  11. #include "EditListCtrl.h"
  12. using namespace std;
  13. class ShowSelPhoto : public CDialog
  14. {
  15. CStringArray m_DirArrayBuf;
  16. CStringArray m_noarray;//no±¸·Ý ,11,12,13, ¸ñʽ
  17. CStringArray m_no2array;//no±¸·Ý ,11,12,13, ¸ñʽ
  18. // Construction
  19. public:
  20. BOOL TerminateThread2();
  21. CString GetSelName(CString name);
  22. CString m_path;
  23. void GetPath(CString str);
  24. CRect m_rc;
  25. int m_mode;
  26. void LoadPhotos();
  27. CStringArray m_patharray1;
  28. CStringArray m_patharray2;
  29. BOOL TerminateThread();
  30. void LoadThumbImages();
  31. ShowSelPhoto(CWnd* pParent = NULL); // standard constructor
  32. CString m_id;
  33. vector<CString> m_vFileName;
  34. CImageList m_ImageListThumb; // image list holding the thumbnails
  35. bool m_bRunning; // Flag to whether thread is on running or not
  36. bool m_bTerminate; // Flag to Thread to be terminated
  37. unsigned int m_dwThreadID; // Thread ID
  38. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  39. vector<CString> m_vFileName2;
  40. CImageList m_ImageListThumb2; // image list holding the thumbnails
  41. bool m_bRunning2; // Flag to whether thread is on running or not
  42. bool m_bTerminate2; // Flag to Thread to be terminated
  43. unsigned int m_dwThreadID2; // Thread ID
  44. HANDLE m_hThread2, m_hEvent2; // Thread and Event handle
  45. // Dialog Data
  46. //{{AFX_DATA(ShowSelPhoto)
  47. enum { IDD = IDD_DLGShowSelPhoto };
  48. CStatic m_sta1;
  49. CListCtrl m_List4;
  50. CListCtrl m_List1;
  51. CEditListCtrl m_List3;
  52. CEditListCtrl m_List2;
  53. //}}AFX_DATA
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(ShowSelPhoto)
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. // Generated message map functions
  63. //{{AFX_MSG(ShowSelPhoto)
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnDestroy();
  67. afx_msg void OnDblclkList4(NMHDR* pNMHDR, LRESULT* pResult);
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_ShowSelPhoto_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)