#if !defined(AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_) #define AFX_SHOWPIC_H__6DEFB626_77A6_44CD_8A13_DD12835EC5A8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include using namespace std; class ShowPic : public CDialog // 客户相片查看 对话框; { CString m_type; CArraym_List1array; CStringArray m_iparray; public: BOOL m_bdelall; CString m_branch; CString remark; void OnBUTupload2(); CString m_id; CString m_name; CString m_name2; int m_mode; // ==1表示 拍照功能里查看相片; void LoadPhotos(); CStringArray m_patharray1; BOOL TerminateThread(); void LoadThumbImages(); ShowPic(CWnd* pParent = NULL); // standard constructor CString m_path; vector 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 enum { IDD = IDD_DLGShowPic }; CComboBox m_combobranch; CListCtrl m_List1; CComboBox m_combo1; CString m_branchname; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support protected: 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 OnBUTupload(); afx_msg void OnBUTselall(); afx_msg void OnSelchangeCombo2(); afx_msg void OnBUTSetDesignNo(); afx_msg void OnBUTexport(); // 只有在设计时,才会有这个导出相片按钮; DECLARE_MESSAGE_MAP() public: int m_nDelCount; // 删除相片的张数(不是全部删除按钮); }; #endif