ChooseDirDlg.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
源码类别:

绘图程序

开发平台:

Visual C++

  1. #if !defined(AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_)
  2. #define AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChooseDirDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CChooseDirDlg dialog
  10. class CChooseDirDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CChooseDirDlg(CWnd* pParent = NULL);   // standard constructor
  15. // Dialog Data
  16. //{{AFX_DATA(CChooseDirDlg)
  17. enum { IDD = IDD_CHOOSE_DIR };
  18. CTreeCtrl m_Directory;
  19. CString m_Path;
  20. //}}AFX_DATA
  21. public:
  22. CString GetDirectory(CString path);
  23. protected:
  24. CImageList m_ImageList;
  25.     // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CChooseDirDlg)
  28. public:
  29. virtual int DoModal();
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. private:
  35. HTREEITEM hLevelRoot;  //树的根项
  36. protected:
  37. //找出level下的所有第一级子目录,并排序
  38.     void FindDir(HTREEITEM level, CString strDirect);
  39. /*
  40. //找出level下的所有目录
  41. void FindAllDir(HTREEITEM level,  CString strDirect);
  42. */
  43. //得出给定项的路径
  44. CString GetstrDirect(HTREEITEM level);
  45.     //展开给定路径的目录
  46. void ExpandPath(CString path);
  47. // Generated message map functions
  48. //{{AFX_MSG(CChooseDirDlg)
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnItemexpandingDirectory(NMHDR* pNMHDR, LRESULT* pResult);
  51. afx_msg void OnSelchangedDirectory(NMHDR* pNMHDR, LRESULT* pResult);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_)