ShowPic3.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. #include "afxwin.h"
  13. #include "AutoCompl.h"
  14. using namespace std;
  15. // Jeff.add 自定义消息;
  16. #define OWNER_MSG_SHOWPHOTO WM_USER+0x333
  17. // 1.只显示取件完成的订单;
  18. class ShowPic3 : public CDialog // 相片管理中心;
  19. {
  20. CString m_type;
  21. CArray<CStringArray, CStringArray>m_List1array;
  22. public:
  23. void ShowPhoto4();
  24. void ShowPhoto3();
  25. void ShowPhoto2();
  26. void ShowPhoto1();
  27. //CString m_id;//Jeff.delete
  28. CString m_strOrderNumber; // Jeff.订单号;
  29. CString m_name;
  30. void LoadPhotos();
  31. CStringArray m_patharray1;
  32. CStringArray m_dirarray1; // 共享目录<客户原片(管理软件)$> 路径中的所有订单文件夹;
  33. CStringArray m_dirarray2;
  34. CStringArray m_dirarray3;
  35. CStringArray m_dirarray4;
  36. BOOL TerminateThread();
  37. void LoadThumbImages();
  38. ShowPic3(CWnd* pParent = NULL); // standard constructor
  39. CString m_path;
  40. vector<CString> m_vFileName;
  41. CImageList m_ImageListThumb; // image list holding the thumbnails
  42. bool m_bRunning; // Flag to whether thread is on running or not
  43. bool m_bTerminate; // Flag to Thread to be terminated
  44. unsigned int m_dwThreadID; // Thread ID
  45. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  46. enum {
  47. IDD = IDD_DLGShowPic3
  48. };
  49. CMultiLineListBox m_List2; // Jeff.list box:左侧客户列表;
  50. CListCtrl m_List1; // Jeff.list ctrl:右侧照片列表;
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. protected:
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnDestroy();
  57. afx_msg void OnBUTdelall();
  58. afx_msg void OnBUTdel();
  59. afx_msg void OnSelchangeList2();
  60. afx_msg void OnBTNshow1();
  61. afx_msg void OnBTNshow2();
  62. afx_msg void OnBTNshow3();
  63. afx_msg void OnBTNshow4();
  64. afx_msg void OnBUTdel1();
  65. afx_msg void OnBUTdel2();
  66. afx_msg void OnBUTdel3();
  67. afx_msg void OnBUTdel4();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. public:
  71. // 查找客人名;
  72. CComboBox m_combobox;
  73. CAutoComplete m_acCombo;
  74. CStringArray m_strArrayName;
  75. afx_msg void ShowPhoto2Found(WPARAM wParam, LPARAM lParam); // 自定义消息:显示找到的订单相片;
  76. afx_msg void OnCbnSelchangeCombo1();
  77. afx_msg void OnBnClickedNextone();
  78. };
  79. #endif