主要是在对话框上放了一个树形控件,图标是加载进来的:
注意选中treecontrol的标志haslines,hasbuttons
// FileTreeDlg.h : header file
//
#if !defined(AFX_FILETREEDLG_H__BB3E545E_C6D7_4412_BC60_C99459B61554__INCLUDED_)
#define AFX_FILETREEDLG_H__BB3E545E_C6D7_4412_BC60_C99459B61554__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/
// CFileTreeDlg dialog
class CFileTreeDlg : public CDialog
{
// Construction
public:
CFileTreeDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{ {AFX_DATA(CFileTreeDlg)
enum { IDD = IDD_FILETREE_DIALOG };
//树形控件
CTreeCtrl m_FileTree;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{ {AFX_VIRTUAL(CFileTreeDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void BrowseFile ( CString strFile,HTREEITEM ParentNode );
HI