Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MNComboBox.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef MNComboBOX_H
00005 #define MNComboBOX_H
00006 
00007 #include "MNComponent.h"
00008 
00012 #define END -1
00013 
00071 class MNComboBox : public MNComponent
00072 {
00073   public:
00077     MNComboBox( MNComponent *parent, int x, int y, int w, int h, 
00078                int style = CBS_DROPDOWN, LPSTR *data = NULL, int ndata = 0 );
00079     
00083     void AddString( LPSTR text, int index = END );
00084 
00088     void AddStrings( LPSTR text[], int ntext, int index = END );
00089 
00093     void RemoveString( int index );
00094 
00098     LPSTR GetString( int index );
00099 
00103     LPSTR operator[]( int index );
00104 
00108     int GetNumberOfItems();
00109 
00113     LPSTR GetSelectedString();
00114 
00118     int GetSelectedIndex();
00119 };
00120 
00121 #endif

Generated on Thu Oct 31 18:21:37 2002 for GuiLib by doxygen1.2.18