1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #if !defined(AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
- #define AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ShowPic3.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // ShowPic3 dialog
- #include "MultiLineListBox.h"
- #include <vector>
- using namespace std;
- class ShowPic3 : public CDialog
- {
- CStringArray m_idarray;
- CStringArray m_datearray;
- CString g_path1,g_path2,g_path3,g_path4;
- CString m_type;
- CArray<CStringArray, CStringArray>m_List1array;
- // Construction
- public:
- void ShowPhoto4();
- void ShowPhoto3();
- void ShowPhoto2();
- void ShowPhoto1();
- CString m_id;
- CString m_name;
- void LoadPhotos();
- CStringArray m_patharray1;
- CStringArray m_dirarray1;
- CStringArray m_dirarray2;
- CStringArray m_dirarray3;
- CStringArray m_dirarray4;
- BOOL TerminateThread();
- void LoadThumbImages();
- ShowPic3(CWnd* pParent = NULL); // standard constructor
- CString m_path;
- vector<CString> m_vFileName;
- CImageList m_ImageListThumb; // image list holding the thumbnails
- bool m_bRunning; // Flag to whether thread is on running or not
- bool m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread, m_hEvent; // Thread and Event handle
- // Dialog Data
- //{{AFX_DATA(ShowPic3)
- enum { IDD = IDD_DLGShowPic3 };
- CComboBox m_combo1;
- CMultiLineListBox m_List2;
- CListCtrl m_List1;
- BOOL m_check1;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(ShowPic3)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(ShowPic3)
- virtual BOOL OnInitDialog();
- afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDestroy();
- afx_msg void OnBUTdelall();
- afx_msg void OnBUTdel();
- afx_msg void OnSelchangeList2();
- afx_msg void OnBTNshow1();
- afx_msg void OnBTNshow2();
- afx_msg void OnBTNshow3();
- afx_msg void OnBTNshow4();
- afx_msg void OnBUTdel1();
- afx_msg void OnBUTdel2();
- afx_msg void OnBUTdel3();
- afx_msg void OnBUTdel4();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg void OnSelchangeCombo1();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ShowPic3_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_)
|