Click here to Skip to main content
15,894,825 members
Articles / Desktop Programming / MFC

Notepad RE (Regular Expressions)

Rate me:
Please Sign up or sign in to vote.
4.68/5 (107 votes)
22 Mar 2011CPOL9 min read 842.9K   8.5K   234  
Search and replace text in Notepad RE using Regular Expressions or normal mode. The editor supports drag and drop, file change notifications, and displays the line and column numbers. Unicode support is available too.
// BrowseForFolder.h: interface for the CBrowseForFolder class.
//
//////////////////////////////////////////////////////////////////////

// Taken from http://www.codeproject.com/cpp/zip.asp

#if !defined(AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__INCLUDED_)
#define AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CBrowseForFolder  
{
public:
	// parent's HWND
	HWND hWndOwner;
	// directory to select
	CString strStartupDir;
	void SetStatusBar(bool val);
	void SetEditBox(bool val);
	// title of the browse dialog
	CString strTitle;
	// the same as Image variable in the BROWSEINFO structure ( see help )
	int Image;
	// directory to explore from
	CString strDirRoot;
	bool GetFolder(CString &returnPath);
	CBrowseForFolder();
	virtual ~CBrowseForFolder();

protected:
	UINT flags;
	void GetPidl(CString name, LPITEMIDLIST);
	static int CALLBACK BrowseCallbackProc( HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
private:

};


#endif // !defined(AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__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 Kingdom United Kingdom
I started programming in 1983 using Sinclair BASIC, then moved on to Z80 machine code and assembler. In 1988 I programmed 68000 assembler on the ATARI ST and it was 1990 when I started my degree in Computing Systems where I learnt Pascal, C and C++ as well as various academic programming languages (ML, LISP etc.)

I have been developing commercial software for Windows using C++ since 1994.

Comments and Discussions