|
// Filterdlg.h : interface of the CFilterDlg class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include <atlmisc.h>
#include <ATLddx.h>
#include <vector>
class CFilterDlg : public CDialogImpl<CFilterDlg>, public CWinDataExchange <CFilterDlg>
{
public:
enum { IDD = IDD_FILTER01_DLG };
BEGIN_MSG_MAP(CFilterDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
COMMAND_ID_HANDLER(IDC_FILTER01_SIMILAR, OnSimilar)
COMMAND_ID_HANDLER(IDC_FILTER01_BUTTON_OR, OnOR)
END_MSG_MAP()
BEGIN_DDX_MAP(CFilterDlg)
DDX_TEXT(IDC_FILTER01_SEARCH_TEXT_COMBO, m_csSearchText)
DDX_TEXT(IDC_FILTER01_ACTION, m_csAction)
DDX_CHECK(IDC_FILTER01_CASE_SENSITIVITY, m_bCaseSensitivity)
DDX_CHECK(IDC_FILTER01_SIMILAR, m_bSimilarity)
DDX_INT_RANGE(IDC_FILTER01_LEVDIST_EDIT, m_nMaxLevensthein, 1, 10)
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 OnSimilar(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnOR(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
void SetValues(bool bInvertedAction, bool bCaseSensitivity, bool bSimilarity, int nMaxLevenstein);
CString m_csSearchText;
CString m_csAction;
bool m_bCaseSensitivity;
bool m_bSimilarity;
int m_nMaxLevensthein;
std::vector<std::wstring> m_setEntries;
};
|
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.