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

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: spinbtn.h 1.4 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __SPINBTN_H__
  10. #define __SPINBTN_H__
  11.  
  12.  
  13.  
  14. #include<winbase.h>
  15. #include<control.h>
  16.  
  17. struct SpinBtnAttr
  18. {
  19.    justification lcr;
  20.    BOOL numberic;
  21.    BOOL fastspin;
  22.    BOOL noBorder;
  23.    BOOL readOnly;
  24.    BOOL padZeros;
  25. };
  26.  
  27.  
  28.  
  29. class TSpinButton: public TControl
  30. {
  31.    protected:
  32.       LONG fMin;
  33.       LONG fMax;
  34.    public:
  35.       TSpinButton(TWinBase *parent, ULONG resource, LONG min, LONG max);
  36.       TSpinButton(TWinBase *parent, SpinBtnAttr *etr, LONG xPos, LONG yPos,
  37.                   LONG xWidth, LONG yHeight, LONG min, LONG max);
  38.       virtual ~TSpinButton();
  39.  
  40.       virtual const char *getClassName();
  41.       void setCurrentValue(LONG cVal);
  42.       LONG getCurrentValue();
  43.       void setLimits(LONG min, LONG max);
  44. };
  45.  
  46.  
  47. #endif
  48.  
  49.