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.
61 lines
2.4 KiB
C++
61 lines
2.4 KiB
C++
#pragma once
|
|
|
|
class CDlgOffsetTable : public CDialogEx
|
|
{
|
|
DECLARE_DYNAMIC(CDlgOffsetTable)
|
|
|
|
public:
|
|
CDlgOffsetTable(CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~CDlgOffsetTable();
|
|
void DelAllChildOfItem(HTREEITEM hItem);
|
|
// 对话框数据
|
|
enum { IDD = IDD_OFFSET_TABLE_DLG };
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
virtual BOOL OnInitDialog();
|
|
|
|
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);
|
|
void SetHistoryMode(bool bHistoryMode);
|
|
void InitDataList();
|
|
void UpdateHistoryList(CString strPath);
|
|
afx_msg void UpdateOffsetTableTree();
|
|
afx_msg void OnTvnItemexpandedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
|
|
afx_msg void OnTvnSelchangedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
|
|
afx_msg void OnBnClickedSearchByName();
|
|
afx_msg void OnNMClickEditInfoList(NMHDR *pNMHDR, LRESULT *pResult);
|
|
afx_msg void OnEnKillfocusDoubleEdit();
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
CTreeCtrl m_MonitorDataTree;
|
|
HTREEITEM m_hRoot; //句柄 CTreeCtrl的根结点
|
|
|
|
CString m_CurSelPath;//树中当前选中的文件或文件夹路径
|
|
|
|
HTREEITEM m_hChild2;//子级节点
|
|
bool m_bFirstDir;//第一个目录
|
|
|
|
bool m_bHistoryMode;//当前是查看历史记录的模式
|
|
CString m_FindFileSuffix;//查找文件后缀
|
|
CString m_FindFilePath;//查找文件后缀
|
|
|
|
CListCtrl m_OffsetTableHistoryList;
|
|
CListCtrl m_OffsetList;
|
|
|
|
CEdit m_DoubleParEdit;//用于编辑double的编辑框
|
|
double m_EditDoubleParVal;
|
|
int m_row;//选中行
|
|
int m_col;//选中列
|
|
public:
|
|
afx_msg void OnBnClickedUpdateTabList();
|
|
afx_msg void OnBnClickedSaveCurOffsetTab();
|
|
afx_msg void OnBnClickedDelOffsetTab();
|
|
afx_msg void OnBnClickedCreatOffsetTab();
|
|
};
|