Introduction
You must override the two virtuals.
bool OnSearch(LPCTSTR szFilter);
and
You must take care with settings like DelayTime
, MinChars
etc. See the header files for more information
Code Listing
class CAutoIni : public CAutoEdit
{
public:
void DeleteString(LPCSTR szKey);
int AddString(LPCSTR szEntry);
virtual bool OnSearch(LPCTSTR szFilter);
CAutoIni();
virtual ~CAutoIni();
protected:
int m_iMaxKeys;
CString m_strSectionName;
CString m_strNumItemsKey;
CString m_strItemDataKey;
public:
inline void SetKeyNumItem(LPCTSTR szKeyName)
{
m_strNumItemsKey = szKeyName;
}
inline CString GetKeyNumItem()
{
return m_strNumItemsKey;
}
inline void SetMaxKeys(int iMax)
{
m_iMaxKeys;
}
inline int GetMaxKeys()
{
return m_iMaxKeys;
}
inline void SetItemKey(LPCTSTR szItemKey)
{
m_strItemDataKey = szItemKey;
}
inline CString GetItemKey()
{
return m_strItemDataKey;
}
DECLARE_MESSAGE_MAP()
protected:
virtual void OnFillList();
};