ReplaceDesignNo.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #if !defined(AFX_ReplaceDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_ReplaceDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ReplaceDesignNo.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ReplaceDesignNo dialog
  10. #include <vector>
  11. #include "EditListCtrl.h"
  12. using namespace std;
  13. class ReplaceDesignNo : public CDialog
  14. {
  15. Image *m_image;
  16. CString m_designno;
  17. // Construction
  18. public:
  19. BOOL TerminateThread2();
  20. CString m_path2;
  21. CString m_path;
  22. CRect m_rc;
  23. int m_mode;
  24. void LoadPhotos();
  25. CStringArray m_patharray1;
  26. CStringArray m_patharray2;
  27. BOOL TerminateThread();
  28. void LoadThumbImages();
  29. ReplaceDesignNo(CWnd* pParent = NULL); // standard constructor
  30. CString m_id;
  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. vector<CString> m_vFileName2;
  38. CImageList m_ImageListThumb2; // image list holding the thumbnails
  39. bool m_bRunning2; // Flag to whether thread is on running or not
  40. bool m_bTerminate2; // Flag to Thread to be terminated
  41. unsigned int m_dwThreadID2; // Thread ID
  42. HANDLE m_hThread2, m_hEvent2; // Thread and Event handle
  43. CImageList m_ImageListThumb3; // image list holding the thumbnails
  44. // Dialog Data
  45. //{{AFX_DATA(ReplaceDesignNo)
  46. enum { IDD = IDD_DLGReplaceDesignNo };
  47. CListCtrl m_List5;
  48. CListCtrl m_List4;
  49. CListCtrl m_List1;
  50. CString m_replacesingle;
  51. CString m_replace;
  52. //}}AFX_DATA
  53. // Overrides
  54. // ClassWizard generated virtual function overrides
  55. //{{AFX_VIRTUAL(ReplaceDesignNo)
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. // Generated message map functions
  62. //{{AFX_MSG(ReplaceDesignNo)
  63. virtual BOOL OnInitDialog();
  64. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnDestroy();
  66. afx_msg void OnDblclkList4(NMHDR* pNMHDR, LRESULT* pResult);
  67. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  68. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  69. afx_msg void OnClickList4(NMHDR* pNMHDR, LRESULT* pResult);
  70. virtual void OnOK();
  71. afx_msg void OnPaint();
  72. afx_msg void OnButton2();
  73. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  74. afx_msg void OnBegindragList4(NMHDR* pNMHDR, LRESULT* pResult);
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. };
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  80. #endif // !defined(AFX_ReplaceDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)