Click here to Skip to main content
15,895,799 members
Articles / Desktop Programming / MFC

Include File Hierarchy Viewer

Rate me:
Please Sign up or sign in to vote.
4.84/5 (108 votes)
29 Jul 2003CPOL8 min read 385.7K   4.5K   151  
A tool to view the include file hierarchy of your source code.
//====================================================================
// Although great care has gone into developing this software,
// it is provided without any guarantee of reliability, accuracy
// of information, or correctness of operation.  I am not responsible
// for any damages that may occur as a result of using this software.
// Use this software entirely at your own risk.
// Copyright 2003, Chris Richardson
//
// Description: Directory search options page.
//
//====================================================================

#if !defined(AFX_DIRECTORYSEARCHPAGE_H__01FD8A7D_CCBF_4A8B_AFFC_6615703FFC15__INCLUDED_)
#define AFX_DIRECTORYSEARCHPAGE_H__01FD8A7D_CCBF_4A8B_AFFC_6615703FFC15__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DirectorySearchPage.h : header file
//

#include "SearchPropertyPage.h"

class CFileIterator;
class CDirectoryFileIterator;

/////////////////////////////////////////////////////////////////////////////
// CDirectorySearchPage dialog

class CDirectorySearchPage : public CSearchPropertyPage
{
	DECLARE_DYNCREATE(CDirectorySearchPage)

// Construction
public:
	CDirectorySearchPage();
	~CDirectorySearchPage();

// Dialog Data
	//{{AFX_DATA(CDirectorySearchPage)
	enum { IDD = IDD_DIRECTORY_PAGE };
	CButton	c_oSubDirectories;
	CEdit	c_oIncludeDirs;
	CButton	c_oBrowseDirectory;
	CComboBox	c_oFileMask;
	CComboBox	c_oSearchDirectory;
	//}}AFX_DATA
   
   virtual CFileIterator *       PrepareToStart();
   virtual void                  SearchStopped();

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CDirectorySearchPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

protected:
   CDirectoryFileIterator *      c_poIterator;

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CDirectorySearchPage)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnBrowseDirectory();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIRECTORYSEARCHPAGE_H__01FD8A7D_CCBF_4A8B_AFFC_6615703FFC15__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I like to program, I like to sail.

Comments and Discussions