#ifndef AUTOCOMPLETECOMBOBOX_H_INCLUDED
#define AUTOCOMPLETECOMBOBOX_H_INCLUDED

#include <wx/combobox.h>
#include <wx/string.h>
#include "Dialogs.h"
#include "Data.h"

class CAutoCompleteComboBox : public wxComboBox
{
public:
    CAutoCompleteComboBox(wxWindow* parent,
                          wxWindowID id,
                          const wxString& value,
                          const wxPoint& pos,
                          const wxSize& size,
                          const wxSortedArrayString& choices,
                          long style,
                          const wxValidator& validator,
                          const wxString& name = "CAutoCompleteComboBoxStr");
    virtual ~CAutoCompleteComboBox();

private:
    void SearchForString(wxCommandEvent &event);
    void GetSelection(wxCommandEvent &event);

    wxSortedArrayString   m_Choices;
    bool                  m_ValueSelected;

};

#endif // AUTOCOMPLETECOMBOBOX_H_INCLUDED
