Click here to Skip to main content
12,893,816 members (47,416 online)
Click here to Skip to main content


36 bookmarked
Posted 15 Jun 2002

A Multiple Substring Search Class: CIVStringSet

, 25 Apr 2010 CPOL
A string array class using MFC or STL that performs very fast multiple string searches
// StringSetSampleDlg.h : header file

#pragma once

#include "StringSet.H"

// CStringSetSampleDlg

class CStringSetSampleDlg : public CDialog
    // Construction
    CStringSetSampleDlg( CWnd * pParent = NULL ) ;  // standard constructor

    // Dialog Data
    CEdit       m_editSearch ;
    CString     m_strSearch ;
    CEdit       m_editSeekTokens ;
    CListBox    m_lbSeekTokens ;
    CListBox    m_lbFoundTokens ;
    CIVStringSet m_setStrings ;

    // ClassWizard generated virtual function overrides
    virtual void DoDataExchange( CDataExchange * pDX ) ;    // DDX/DDV support
    virtual BOOL OnInitDialog() ;

    // Implementation
    HICON m_hIcon ;

    afx_msg void OnSysCommand( UINT nID, LPARAM lParam ) ;
    afx_msg void OnPaint() ;
    afx_msg HCURSOR OnQueryDragIcon() ;
    afx_msg void OnKillFocusStringsToSeek() ;
    afx_msg void OnSearch() ;
} ;

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 article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Scot Brennecke
Software Developer (Senior) Microsoft
United States United States
Scot is a Sr. Escalation Engineer for the Microsoft Developer Support Languages team. He helps software developers who are Microsoft customers find bugs in their own, or Microsoft's, code.

Scot spends most of his time writing, reading, or thinking about C++ software, thereby classifying him as a geek.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 25 Apr 2010
Article Copyright 2002 by Scot Brennecke
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid