Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / C++

CEnum - File Enumeration and File Globbing Class

Rate me:
Please Sign up or sign in to vote.
4.45/5 (5 votes)
6 Dec 2008CPOL12 min read 52.6K   1.2K   48  
CEnum is used for enumeration of files and directories using wildcard matching (globbing)
// CEnumeratorDlg.h : header file
//

#pragma once
#include "afxcmn.h"


// CCEnumeratorDlg dialog
class CCEnumeratorDlg : public CDialog
{
// Construction
public:
	CCEnumeratorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CENUMERATOR_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CListCtrl m_ctlListCtrl;
	CString m_sPath;
	CString m_sExcPatternDirs;
	CString m_sExcPatternFiles;
	CString m_sIncPatternDirs;
	CString m_sIncPatternFiles;
    void OnOK();
public:
	afx_msg void OnEnumerate();
	afx_msg void OnTestCompare();
	afx_msg void OnNMDblclkList1(NMHDR *pNMHDR, LRESULT *pResult);
};

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
Croatia Croatia
Nothing to brag about.
Just another engineer who works as a software developer last couple of years.

Comments and Discussions