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.
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
#pragma once
|
|
#include "MyDlgView.h"
|
|
#include "afxdtctl.h"
|
|
#include "ATLComTime.h"
|
|
|
|
class CDlgChildAlarmLog : public CMyDlgView
|
|
{
|
|
DECLARE_DYNAMIC(CDlgChildAlarmLog)
|
|
|
|
public:
|
|
CDlgChildAlarmLog(CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~CDlgChildAlarmLog();
|
|
virtual void OnViewOpen();//响应view 打开的时候
|
|
void InitDataList();
|
|
void UpdateDataList(CString FilePath);
|
|
CString GetDateStr(CTime &DateTime);
|
|
void DelAllChildOfItem(HTREEITEM hItem);
|
|
// 对话框数据
|
|
enum { IDD = IDD_CHILD_ALARM_LOG };
|
|
private:
|
|
CTreeCtrl m_MonitorDataTree;
|
|
HTREEITEM m_hRoot; //句柄 CTreeCtrl的根结点
|
|
|
|
CListCtrl m_DataList;
|
|
CString m_CurSelPath;//树中当前选中的文件或文件夹路径
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
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();
|
|
// 当前选中的日期
|
|
COleDateTime m_SelDate;
|
|
};
|
|
|
|
|