You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB
C

#pragma once
class CDlgMapHistory : public CDialogEx
{
DECLARE_DYNAMIC(CDlgMapHistory)
public:
CDlgMapHistory(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CDlgMapHistory();
void DelAllChildOfItem(HTREEITEM hItem);
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_MAP_HISTORY_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
private:
CTreeCtrl m_MonitorDataTree;
HTREEITEM m_hRoot; //<2F><><EFBFBD><EFBFBD> CTreeCtrl<72>ĸ<EFBFBD><C4B8><EFBFBD><EFBFBD><EFBFBD>
CString m_CurSelPath;//<2F><><EFBFBD>е<EFBFBD>ǰѡ<C7B0>е<EFBFBD><D0B5>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>·<EFBFBD><C2B7>
HTREEITEM m_hChild2;//<2F>Ӽ<EFBFBD><D3BC>ڵ<EFBFBD>
bool m_bFirstDir;//<2F><>һ<EFBFBD><D2BB>Ŀ¼
protected:
void GetLogicalDrives(HTREEITEM hParent);
void GetLogicalDrives(HTREEITEM hParent, COleDateTime SelDate,bool bByMonth = false);
void GetDriveDir(HTREEITEM hParent);
CString GetFullPath(HTREEITEM hCurrent);
void AddSubDir(HTREEITEM hParent);
void SearchByName(CString SearchName);
void GetDriveDir_ByPath(HTREEITEM hParent,CString FindPath,CString SearchName);
void ExpandTree(CTreeCtrl* pTreeCtrl,HTREEITEM hItem);
afx_msg void OnBnClickedSearchBtn();
afx_msg void OnTvnItemexpandedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnTvnSelchangedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedSearchByName();
};