ShowPic3.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. class ShowPic3 : public CDialog
  18. {
  19. CString m_type;
  20. CArray<CStringArray, CStringArray>m_List1array;
  21. // Construction
  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. // Dialog Data
  47. //{{AFX_DATA(ShowPic3)
  48. enum { IDD = IDD_DLGShowPic3 };
  49. CMultiLineListBox m_List2; // Jeff.list box:左侧客户列表;
  50. CListCtrl m_List1; // Jeff.list ctrl:右侧照片列表;
  51. //}}AFX_DATA
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(ShowPic3)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. // Generated message map functions
  61. //{{AFX_MSG(ShowPic3)
  62. virtual BOOL OnInitDialog();
  63. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnDestroy();
  65. afx_msg void OnBUTdelall();
  66. afx_msg void OnBUTdel();
  67. afx_msg void OnSelchangeList2();
  68. afx_msg void OnBTNshow1();
  69. afx_msg void OnBTNshow2();
  70. afx_msg void OnBTNshow3();
  71. afx_msg void OnBTNshow4();
  72. afx_msg void OnBUTdel1();
  73. afx_msg void OnBUTdel2();
  74. afx_msg void OnBUTdel3();
  75. afx_msg void OnBUTdel4();
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. public:
  79. // 查找客人名
  80. CComboBox m_combobox;
  81. CAutoComplete m_acCombo;
  82. CStringArray m_strArrayName;
  83. afx_msg void ShowPhoto2Found(WPARAM wParam,LPARAM lParam); // 自定义消息:显示找到的订单相片;
  84. afx_msg void OnCbnSelchangeCombo1();
  85. afx_msg void OnBnClickedNextone();
  86. };
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)