home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / COMBOBOX.H < prev    next >
C/C++ Source or Header  |  1995-08-27  |  1KB  |  46 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: combobox.h 1.2 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __SPINBTN_H__
  10. #define __SPINBTN_H__
  11.  
  12.  
  13.  
  14.  
  15. #include<winbase.h>
  16. #include<control.h>
  17.  
  18.  
  19. class TComboBox: public TControl
  20. {
  21.    public:
  22.       TComboBox(TWinBase *parent, ULONG resource);
  23.       TComboBox(TWinBase *parent, ULONG id, LONG xPos, LONG yPos,
  24.                   LONG xWidth, LONG yHeight, BOOL adjustPos);
  25.       TComboBox(TWinBase *parent, ULONG id, LONG xPos, LONG yPos,
  26.                   LONG xWidth, LONG yHeight, BOOL adjutsPos,
  27.                        char **items, LONG numItems);
  28.       virtual ~TComboBox();
  29.  
  30.       virtual const char *getClassName();
  31.       void addItemAt(char *item, SHORT at);
  32.       void addItemFirst(char *item);
  33.       void addItemLast(char *item);
  34.       void deleteItemAt (SHORT itemNo);
  35.       void deleteAll();
  36.       SHORT getNumItems();
  37.       void setItemText (char *text, SHORT item);
  38.       SHORT getSelectedItem();
  39.       char *getItemAt(SHORT at);
  40.       ULONG getItemLength(SHORT at);
  41.       ULONG getSelectedItemLength();
  42. };
  43.  
  44.  
  45. #endif
  46.