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); // 标准构造函数
virtual ~CDlgMapHistory();
void DelAllChildOfItem(HTREEITEM hItem);
// 对话框数据
enum { IDD = IDD_MAP_HISTORY_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
private:
CTreeCtrl m_MonitorDataTree;
HTREEITEM m_hRoot; //句柄 CTreeCtrl的根结点
CString m_CurSelPath;//树中当前选中的文件或文件夹路径
HTREEITEM m_hChild2;//子级节点
bool m_bFirstDir;//第一个目录
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();
};