Click here to Skip to main content
12,356,154 members (70,288 online)
Click here to Skip to main content

Stats

8.1K views
1.6K downloads
12 bookmarked
Posted

Log Harvester

, 17 Sep 2012 CPOL
A complete log viewer written in C++/WTL.
// Replacedlg.h : interface of the CReplaceDlg class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once

#include <atlmisc.h>
#include <ATLddx.h>

class CReplaceDlg : public CDialogImpl<CReplaceDlg>, public CWinDataExchange <CReplaceDlg>
{
public:
	enum { IDD = IDD_REPLACE_DLG };

	BEGIN_MSG_MAP(CReplaceDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
		COMMAND_ID_HANDLER(IDC_REPLACEDLG_BUTTON_CRLF, OnCRLF)
		COMMAND_ID_HANDLER(IDC_REPLACEDLG_BUTTON_TAB, OnTab)
		COMMAND_ID_HANDLER(IDC_REPLACEDLG_EDIT_FIND, OnFocus)
		COMMAND_ID_HANDLER(IDC_REPLACEDLG_EDIT_REPLACE, OnFocus)
	END_MSG_MAP()

	BEGIN_DDX_MAP(CReplaceDlg)
		DDX_TEXT(IDC_REPLACEDLG_EDIT_FIND, m_csFindText)
		DDX_TEXT(IDC_REPLACEDLG_EDIT_REPLACE, m_csReplaceText)
		DDX_CHECK(IDC_REPLACEDLG_CASE_SENSITIVITY, m_bCaseSensitivity)
	END_DDX_MAP()


// Handler prototypes (uncomment arguments if needed):
//	LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
//	LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
//	LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnFocus(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnCRLF(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnTab(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

	int m_nLastEdit;
	CString m_csFindText;
	CString m_csReplaceText;
	bool m_bCaseSensitivity;
};

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)

Share

About the Author

Adam Wojnar
Software Developer (Senior)
Czech Republic Czech Republic
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 17 Sep 2012
Article Copyright 2012 by Adam Wojnar
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid