ChooseDirDlg.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- #if !defined(AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_)
- #define AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ChooseDirDlg.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CChooseDirDlg dialog
- class CChooseDirDlg : public CDialog
- {
- // Construction
- public:
- CChooseDirDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CChooseDirDlg)
- enum { IDD = IDD_CHOOSE_DIR };
- CTreeCtrl m_Directory;
- CString m_Path;
- //}}AFX_DATA
- public:
- CString GetDirectory(CString path);
-
- protected:
- CImageList m_ImageList;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CChooseDirDlg)
- public:
- virtual int DoModal();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- private:
- HTREEITEM hLevelRoot; //树的根项
- protected:
- //找出level下的所有第一级子目录,并排序
- void FindDir(HTREEITEM level, CString strDirect);
- /*
- //找出level下的所有目录
- void FindAllDir(HTREEITEM level, CString strDirect);
- */
- //得出给定项的路径
- CString GetstrDirect(HTREEITEM level);
- //展开给定路径的目录
- void ExpandPath(CString path);
- // Generated message map functions
- //{{AFX_MSG(CChooseDirDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnItemexpandingDirectory(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSelchangedDirectory(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CHOOSEDIRDLG_H__F4310B04_DEB4_11D2_BC69_C931523F9459__INCLUDED_)