UploadPhoto.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #if !defined(AFX_UPLOADPHOTO_H__EC2B49B0_338B_4CCF_AA2A_05A80E6C6BCE__INCLUDED_)
  2. #define AFX_UPLOADPHOTO_H__EC2B49B0_338B_4CCF_AA2A_05A80E6C6BCE__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // UploadPhoto.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // UploadPhoto dialog
  10. class UploadPhoto : public CDialog
  11. {
  12. HWND m_hCapture;
  13. // Construction
  14. public:
  15. CString m_path;
  16. void LoadPhotos();
  17. UploadPhoto(CWnd* pParent = NULL); // standard constructor
  18. CStringArray m_patharray1;
  19. BOOL TerminateThread();
  20. void LoadThumbImages();
  21. vector<CString> m_vFileName;
  22. CImageList m_ImageListThumb; // image list holding the thumbnails
  23. bool m_bRunning; // Flag to whether thread is on running or not
  24. bool m_bTerminate; // Flag to Thread to be terminated
  25. unsigned int m_dwThreadID; // Thread ID
  26. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  27. // Dialog Data
  28. //{{AFX_DATA(UploadPhoto)
  29. enum { IDD = IDD_DLGUploadPhoto };
  30. CListCtrl m_List1;
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(UploadPhoto)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. protected:
  40. // Generated message map functions
  41. //{{AFX_MSG(UploadPhoto)
  42. afx_msg void OnButton1();
  43. afx_msg void OnButton2();
  44. afx_msg void OnButton3();
  45. afx_msg void OnDestroy();
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnButton4();
  48. afx_msg void OnButton5();
  49. afx_msg void OnButton6();
  50. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_UPLOADPHOTO_H__EC2B49B0_338B_4CCF_AA2A_05A80E6C6BCE__INCLUDED_)