SetDesignNo.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #if !defined(AFX_SetDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_SetDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SetDesignNo.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // SetDesignNo dialog
  10. #include <vector>
  11. #include "EditListCtrl.h"
  12. using namespace std;
  13. class SetDesignNo : 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. SetDesignNo(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. // Dialog Data
  44. //{{AFX_DATA(SetDesignNo)
  45. enum { IDD = IDD_DLGSetDesignNo };
  46. CListCtrl m_List4;
  47. CListCtrl m_List1;
  48. //}}AFX_DATA
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(SetDesignNo)
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(SetDesignNo)
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnDestroy();
  62. afx_msg void OnDblclkList4(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  64. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnClickList4(NMHDR* pNMHDR, LRESULT* pResult);
  66. virtual void OnOK();
  67. afx_msg void OnPaint();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_SetDesignNo_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)