#ifndef __LISTBOX_H #define __LISTBOX_H #pragma interface #include #include struct bmsListBox: FramedWin { bmsListBox(const char *title,TextArray &); void key(int); //void getfocus(); //void losefocus(); void draw(const Rect &); void set(int); void setpos(Point); int get() const { return cursel; } ~bmsListBox(); private: bmsListBox(const bmsListBox &); bmsListBox&operator=(const bmsListBox &); int topline, cursel, matchlen; TextArray &txt; }; #endif