ShowPic.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #if !defined(AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
  2. #define AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShowPic.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowPic dialog
  10. #include <vector>
  11. using namespace std;
  12. class ShowPic : public CDialog
  13. {
  14. // Construction
  15. public:
  16. int m_mode;
  17. void LoadPhotos();
  18. CStringArray m_patharray1;
  19. BOOL TerminateThread();
  20. void LoadThumbImages();
  21. ShowPic(CWnd* pParent = NULL); // standard constructor
  22. CString m_path;
  23. vector<CString> m_vFileName;
  24. // CListCtrl m_ListCtrl;
  25. CImageList m_ImageListThumb; // image list holding the thumbnails
  26. bool m_bRunning; // Flag to whether thread is on running or not
  27. bool m_bTerminate; // Flag to Thread to be terminated
  28. unsigned int m_dwThreadID; // Thread ID
  29. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  30. // Dialog Data
  31. //{{AFX_DATA(ShowPic)
  32. enum { IDD = IDD_DLGShowPic };
  33. CListCtrl m_List1;
  34. CComboBox m_combo1;
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(ShowPic)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(ShowPic)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  48. afx_msg void OnDestroy();
  49. afx_msg void OnBUTdelall();
  50. afx_msg void OnBUTdel();
  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_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)