summaryrefslogtreecommitdiff
path: root/NSCmpts/IgnoreProp.h
diff options
context:
space:
mode:
Diffstat (limited to 'NSCmpts/IgnoreProp.h')
-rw-r--r--NSCmpts/IgnoreProp.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/NSCmpts/IgnoreProp.h b/NSCmpts/IgnoreProp.h
new file mode 100644
index 0000000..206519e
--- /dev/null
+++ b/NSCmpts/IgnoreProp.h
@@ -0,0 +1,51 @@
+// IgnoreProp.h: interface for the CIgnoreProp class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_IGNOREPROP_H__93425F11_BC15_11D3_82FF_005056D45AB0__INCLUDED_)
+#define AFX_IGNOREPROP_H__93425F11_BC15_11D3_82FF_005056D45AB0__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include <mystring.h>
+
+#include "../common/CmptData.h"
+
+#include <atlctrls.h>
+#include <sysimglist.h>
+#include <shlobj.h>
+
+///////////////////////////////////////////////////////////////////////////////
+// CIgnoreProp is common code for the Advanced Property Pages
+
+class CIgnoreProp
+{
+public:
+ CIgnoreProp(CPropertyBag& data) : m_Data(data) {}
+
+// Message Handlers
+protected:
+ LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
+ LRESULT OnEndLabelEdit(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
+ LRESULT OnListSetFocus(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
+ LRESULT OnKeyDown(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
+ LRESULT OnRemove(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
+ LRESULT OnAdd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
+
+// Helper Functions
+protected:
+ int AddExtension(string sExtension);
+ void UpdateData(bool bSave);
+
+// Data
+protected:
+ CSysImageList m_imgList; // For looking up Icons
+ CListViewCtrl m_ctlList; // List Control
+ string_array m_asExtensions; // Set of Extensions
+ CPropertyBag& m_Data; // Reference to Data
+ HWND m_hwndIgnore; // Dialog Window to work with (set by class user)
+};
+
+#endif // !defined(AFX_IGNOREPROP_H__93425F11_BC15_11D3_82FF_005056D45AB0__INCLUDED_)