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.

46 lines
1.5 KiB
C

#pragma once
#include "MyDlgView.h"
#include "afxdtctl.h"
#include "ATLComTime.h"
class CDlgChildConfigHistory : public CMyDlgView
{
DECLARE_DYNAMIC(CDlgChildConfigHistory)
public:
CDlgChildConfigHistory(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CDlgChildConfigHistory();
virtual void OnViewOpen();//<2F><>Ӧview <20>򿪵<EFBFBD>ʱ<EFBFBD><CAB1>
void InitDataList();
void UpdateDataList(CString FilePath);
CString GetDateStr(CTime &DateTime);
void DelAllChildOfItem(HTREEITEM hItem);
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_CHILD_CONFIG_HISTORY };
private:
CTreeCtrl m_MonitorDataTree;
HTREEITEM m_hRoot; //<2F><><EFBFBD><EFBFBD> CTreeCtrl<72>ĸ<EFBFBD><C4B8><EFBFBD><EFBFBD><EFBFBD>
CListCtrl m_DataList;
CString m_CurSelPath;//<2F><><EFBFBD>е<EFBFBD>ǰѡ<C7B0>е<EFBFBD><D0B5>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>·<EFBFBD><C2B7>
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
void GetLogicalDrives(HTREEITEM hParent);
void GetLogicalDrives(HTREEITEM hParent,COleDateTime SelDate);
void GetDriveDir(HTREEITEM hParent);
CString GetFullPath(HTREEITEM hCurrent);
void AddSubDir(HTREEITEM hParent);
afx_msg void OnBnClickedSearchBtn();
afx_msg void OnTvnItemexpandedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnTvnSelchangedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedExport();
afx_msg void OnBnClickedSearchByDate();
// <20><>ǰѡ<C7B0>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
COleDateTime m_SelDate;
};