ShowPic.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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
  6. #include <vector>
  7. using namespace std;
  8. class ShowPic : public CDialog // 客户相片查看 对话框;
  9. {
  10. CString m_type;
  11. CArray<CStringArray, CStringArray>m_List1array;
  12. CStringArray m_iparray;
  13. public:
  14. BOOL m_bdelall;
  15. CString m_branch; CString remark;
  16. void OnBUTupload2();
  17. CString m_id;
  18. CString m_name; CString m_name2;
  19. int m_mode; // ==1表示 拍照功能里查看相片;
  20. void LoadPhotos();
  21. CStringArray m_patharray1;
  22. BOOL TerminateThread();
  23. void LoadThumbImages();
  24. ShowPic(CWnd* pParent = NULL); // standard constructor
  25. CString m_path;
  26. vector<CString> m_vFileName;
  27. CImageList m_ImageListThumb; // image list holding the thumbnails
  28. bool m_bRunning; // Flag to whether thread is on running or not
  29. bool m_bTerminate; // Flag to Thread to be terminated
  30. unsigned int m_dwThreadID; // Thread ID
  31. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  32. enum { IDD = IDD_DLGShowPic };
  33. CComboBox m_combobranch;
  34. CListCtrl m_List1;
  35. CComboBox m_combo1;
  36. CString m_branchname;
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. protected:
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  42. afx_msg void OnDestroy();
  43. afx_msg void OnBUTdelall();
  44. afx_msg void OnBUTdel();
  45. afx_msg void OnBUTupload();
  46. afx_msg void OnBUTselall();
  47. afx_msg void OnSelchangeCombo2();
  48. afx_msg void OnBUTSetDesignNo();
  49. afx_msg void OnBUTexport(); // 只有在设计时,才会有这个导出相片按钮;
  50. DECLARE_MESSAGE_MAP()
  51. public:
  52. int m_nDelCount; // 删除相片的张数(不是全部删除按钮);
  53. };
  54. #endif