// 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 #include "../common/CmptData.h" #include #include #include /////////////////////////////////////////////////////////////////////////////// // 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_)