ShowPic.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #if !defined(AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShowPic.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowPic d ialog
  10. #include <vector>
  11. using namespace std;
  12. class ShowPic : public CDialog
  13. {
  14. CString m_type;
  15. CArray<CStringArray, CStringArray>m_List1array;
  16. CStringArray m_iparray;
  17. // Construction
  18. public:
  19. BOOL m_bdelall;
  20. CString m_branch; CString remark;
  21. void OnBUTupload2();
  22. CString m_id;
  23. CString m_name; CString m_name2;
  24. int m_mode;
  25. void LoadPhotos();
  26. CStringArray m_patharray1;
  27. BOOL TerminateThread();
  28. void LoadThumbImages();
  29. ShowPic(CWnd* pParent = NULL); // standard constructor
  30. CString m_path;
  31. vector<CString> m_vFileName;
  32. CImageList m_ImageListThumb; // image list holding the thumbnails
  33. bool m_bRunning; // Flag to whether thread is on running or not
  34. bool m_bTerminate; // Flag to Thread to be terminated
  35. unsigned int m_dwThreadID; // Thread ID
  36. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  37. // Dialog Data
  38. //{{AFX_DATA(ShowPic)
  39. enum { IDD = IDD_DLGShowPic };
  40. CComboBox m_combobranch;
  41. CListCtrl m_List1;
  42. CComboBox m_combo1;
  43. CString m_branchname;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(ShowPic)
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(ShowPic)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnDestroy();
  58. afx_msg void OnBUTdelall();
  59. afx_msg void OnBUTdel();
  60. afx_msg void OnBUTupload();
  61. afx_msg void OnBUTselall();
  62. afx_msg void OnSelchangeCombo2();
  63. afx_msg void OnBUTSetDesignNo();
  64. afx_msg void OnBUTexport();
  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_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)