ShowPic3.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. CStringArray m_vFileName;
  42. CImageList m_ImageListThumb; // image list holding the thumbnails
  43. bool m_bRunning; // Flag to whether thread is on running or not
  44. bool m_bTerminate; // Flag to Thread to be terminated
  45. unsigned int m_dwThreadID; // Thread ID
  46. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  47. enum {
  48. IDD = IDD_DLGShowPic3
  49. };
  50. CMultiLineListBox m_List2; // Jeff.list box:左侧客户列表;
  51. CListCtrl m_List1; // Jeff.list ctrl:右侧照片列表;
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. protected:
  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 OnSelchangeList2();
  61. afx_msg void OnBTNshow1();
  62. afx_msg void OnBTNshow2();
  63. afx_msg void OnBTNshow3();
  64. afx_msg void OnBTNshow4();
  65. afx_msg void OnBUTdel1();
  66. afx_msg void OnBUTdel2();
  67. afx_msg void OnBUTdel3();
  68. afx_msg void OnBUTdel4();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. public:
  72. static DWORD WINAPI LoadThumbNail20(LPVOID lpParam);
  73. // 查找客人名;
  74. CComboBox m_combobox;
  75. CAutoComplete m_acCombo;
  76. CStringArray m_strArrayName;
  77. #ifdef VC60
  78. afx_msg void ShowPhoto2Found(WPARAM wParam, LPARAM lParam); // 自定义消息:显示找到的订单相片;
  79. #else
  80. afx_msg LRESULT ShowPhoto2Found(WPARAM wParam, LPARAM lParam); // 自定义消息:显示找到的订单相片;
  81. #endif
  82. afx_msg void OnCbnSelchangeCombo1();
  83. afx_msg void OnBnClickedNextone();
  84. #ifdef USE_KERNEL_DLL
  85. void ShowOrderImg(IN CONST INT& nImgType);
  86. #endif
  87. protected:
  88. virtual void OnOK();
  89. };
  90. #endif