Dlg_EditView.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #include "afxcmn.h"
  3. #include "BtnST.h"
  4. // CDlg_EditView 对话框
  5. class CDlg_EditView : public CDialog
  6. {
  7. DECLARE_DYNAMIC(CDlg_EditView)
  8. public:
  9. CDlg_EditView(CWnd* pParent = NULL); // 标准构造函数
  10. virtual ~CDlg_EditView();
  11. // 对话框数据
  12. enum { IDD = IDD_DLG_EDITSORT };
  13. protected:
  14. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  15. DECLARE_MESSAGE_MAP()
  16. public:
  17. virtual BOOL OnInitDialog();
  18. afx_msg void OnBnClickedBtnDel();
  19. afx_msg void OnBnClickedBtnUp();
  20. afx_msg void OnBnClickedBtnDown();
  21. afx_msg void OnBnClickedBtnAllShow();
  22. afx_msg void OnBnClickedBtnAllHide();
  23. afx_msg void OnBnClickedOk();
  24. afx_msg void OnBnClickedCancel();
  25. CListCtrl m_ListView;
  26. void FileSearch( CStringArray &SATemp,int iInsertIndex, CString strPath, CString strFileName, int nLayer);
  27. BOOL DirSearch(CString strPath, CString strFileName);
  28. afx_msg void OnNMDblclkList1(NMHDR *pNMHDR, LRESULT *pResult);
  29. void ReadALlView();
  30. CString m_sPath;
  31. void InsertToList( int iInsertIndex,CString sContent,CString sPath );
  32. CByteArray m_BA1,m_BA2;
  33. CStringArray m_SA1,m_SA2;
  34. void ShowOne( CString sParent,CString sContent,int &iListIndex );
  35. void HideOne( CString sParent,CString &sContent,int iListIndex );
  36. void ShowAll( );
  37. void HideAll( );
  38. int GetLevel( CString sContent );
  39. CString GetPreStr( CString sContent );
  40. CButtonST m_btnDel,m_btnUp,m_btnDown,m_btnShow,m_btnHide,m_btnSave,m_btnExit;
  41. };