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

#pragma once
class CDlgOffsetTable : public CDialogEx
{
DECLARE_DYNAMIC(CDlgOffsetTable)
public:
CDlgOffsetTable(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CDlgOffsetTable();
void DelAllChildOfItem(HTREEITEM hItem);
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_OFFSET_TABLE_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
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; //<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>Ŀ¼
bool m_bHistoryMode;//<2F><>ǰ<EFBFBD>Dz鿴<C7B2><E9BFB4>ʷ<EFBFBD><CAB7>¼<EFBFBD><C2BC>ģʽ
CString m_FindFileSuffix;//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>׺
CString m_FindFilePath;//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>׺
CListCtrl m_OffsetTableHistoryList;
CListCtrl m_OffsetList;
CEdit m_DoubleParEdit;//<2F><><EFBFBD>ڱ༭double<6C>ı<C4B1><E0BCAD>
double m_EditDoubleParVal;
int m_row;//ѡ<><D1A1><EFBFBD><EFBFBD>
int m_col;//ѡ<><D1A1><EFBFBD><EFBFBD>
public:
afx_msg void OnBnClickedUpdateTabList();
afx_msg void OnBnClickedSaveCurOffsetTab();
afx_msg void OnBnClickedDelOffsetTab();
afx_msg void OnBnClickedCreatOffsetTab();
};