|
// 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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.