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

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: vset.h 1.7 1995/08/26 23:50:45 teb Exp $ */
  8.  
  9. #ifndef __VSET_H__
  10. #define __VSET_H__
  11.  
  12. #define INCL_WIN
  13. #include<os2.h>
  14. #include<pmwrap.h>
  15.  
  16.  
  17. enum setType {colors, bitmaps, icon, text};
  18.  
  19.  
  20. struct ValSetAttrib
  21. {
  22.    setType items;
  23.    BOOL itemBorder;
  24.    BOOL setBorder;
  25.    BOOL scaleItems;
  26.    SHORT x;
  27.    SHORT y;
  28.    SHORT width;
  29.    SHORT height;
  30. };
  31.  
  32.  
  33. class TValueSet: public TWinBase
  34. {
  35.       USHORT fRows, fCols;
  36.       VSCDATA vscData;
  37.       ULONG ulVSetStyle;
  38.       ULONG fData;             
  39.       SHORT fX, fY, fcX, fcY;
  40.       ULONG fId;
  41.       TWinBase *fParent;
  42.     
  43.    public:
  44.       ValSetAttrib fVSetAttr;
  45.       TValueSet(ULONG id, TWinBase *parent, USHORT rows, USHORT cols);
  46.       ~TValueSet();
  47.       USHORT getNumRows();
  48.       USHORT getNumCols();
  49.       const char *getClassName(void);
  50.       virtual BOOL init();
  51.       void setItem(USHORT row, USHORT col, VOID *item);
  52.       virtual MRESULT DoControl(MPARAM mParam1);
  53.       void getSelection(SHORT &row, SHORT &col);
  54. };
  55.  
  56.  
  57. #endif
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.