-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathContentFilterDlg.h
49 lines (38 loc) · 1.34 KB
/
ContentFilterDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// aboutdlg.h : interface of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "resource.h"
#include <AtlApp.h>
#include <AtlWin.h>
#include <atlcrack.h>
#include <AtlCtrls.h>
#include <atlmisc.h>
#include <atlctrlx.h>
#include <list>
#include "SettingsStorage.h"
class CContentFilterDlg :
public CPropertyPageImpl<CContentFilterDlg>,
public CWinDataExchange<CContentFilterDlg>
{
public:
CContentFilterDlg();
enum { IDD = IDD_FILTERSETTINGS };
BEGIN_MSG_MAP(CContentFilterDlg )
MSG_WM_INITDIALOG(OnInitDialog)
CHAIN_MSG_MAP(CPropertyPageImpl<CContentFilterDlg>)
COMMAND_HANDLER(IDC_BUTTONADD, BN_CLICKED, OnBnClickedAdd)
COMMAND_HANDLER(IDC_BUTTON_REMOVE, BN_CLICKED, OnBnClickedRemove)
END_MSG_MAP()
LRESULT OnBnClickedAdd(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnBnClickedRemove(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
BOOL OnInitDialog ( HWND hwndFocus, LPARAM lParam );
int OnApply();
private:
CListViewCtrl m_wndList;
std::list<CString> m_lstContentType;
SettingsStorage& m_settings;
void AddContentTypeToList(LPCTSTR pszContentType, bool filterEnabled);
void PopulateList();
void SaveSettings();
};