00001
00002
00003
00004 #ifndef MNLISTBOX_H
00005 #define MNLISTBOX_H
00006
00007 #include "MNComponent.h"
00008
00012 #define END -1
00013
00073 class MNListBox : public MNComponent
00074 {
00075 public:
00079 MNListBox( MNComponent *parent, int x, int y, int w, int h,
00080 int style = 0, LPSTR *data = NULL, int ndata = 0 );
00081
00085 void AddString( LPSTR text, int index = END );
00086
00090 void AddStrings( LPSTR text[], int ntext, int index = END );
00091
00095 void RemoveString( int index );
00096
00100 LPSTR GetString( int index );
00101
00105 LPSTR operator[]( int index );
00106
00110 int GetNumberOfItems();
00111
00115 LPSTR GetSelectedString();
00116
00120 int GetSelectedIndex();
00121 };
00122
00123 #endif