TreeViewDlg.h
资源名称:TreeView.rar [点击查看]
上传用户:wrlxzs
上传日期:2022-03-24
资源大小:20k
文件大小:2k
源码类别:
TreeView控件
开发平台:
Visual C++
- // TreeViewDlg.h : header file
- // Download by http://www.codefans.net
- #if !defined(AFX_TREEVIEWDLG_H__CC9C0CD9_217D_4A65_9678_982A1C812037__INCLUDED_)
- #define AFX_TREEVIEWDLG_H__CC9C0CD9_217D_4A65_9678_982A1C812037__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CTreeViewDlg dialog
- class CTreeViewDlg : public CDialog
- {
- // Construction
- public:
- void AddSubDir(HTREEITEM hParent);
- CString GetFullPath(HTREEITEM hCurrent);
- void GetDriveDir(HTREEITEM hParent);
- void GetLogicalDrives(HTREEITEM hParen);
- CTreeViewDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CTreeViewDlg)
- enum { IDD = IDD_TREEVIEW_DIALOG };
- CTreeCtrl m_tree;
- CListCtrl m_list;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTreeViewDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- HTREEITEM m_hRoot;
- CImageList m_ImageList;
- // Generated message map functions
- //{{AFX_MSG(CTreeViewDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnItemexpandedTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSelchangingTree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnClickTree(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_TREEVIEWDLG_H__CC9C0CD9_217D_4A65_9678_982A1C812037__INCLUDED_)