home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / include2 / v / vsliderc.h < prev    next >
C/C++ Source or Header  |  1999-01-27  |  1KB  |  36 lines

  1. //===============================================================
  2. // vslider.h - List Command class - Windows
  3. //
  4. // Copyright (C) 1995-1999  Bruce E. Wampler
  5. //
  6. // This file is part of the V C++ GUI Framework, and is covered
  7. // under the terms of the GNU Library General Public License,
  8. // Version 2. This library has NO WARRANTY. See the source file
  9. // vapp.cxx for more complete information about license terms.
  10. //===============================================================
  11. #ifndef VSLIDERC_H
  12. #define VSLIDERC_H
  13. #include <v/vcmd.h>    // We are derived from vcmd
  14.  
  15.     class V_EXPORT vCmdParent;
  16.  
  17.     class V_EXPORT vSliderCmd : public vCmd
  18.       {
  19.       public:        //---------------------------------------- public
  20.     vSliderCmd(vCmdParent* dp, CommandObject* co);
  21.     virtual ~vSliderCmd();
  22.     virtual void initialize();
  23.     virtual int GetCmdValue(ItemVal id) VCONST;
  24.     virtual void SetCmdVal(ItemVal val, ItemSetType st);
  25.       protected:    //--------------------------------------- protected
  26.  
  27.       private:        //--------------------------------------- private
  28.     int _curVal;        // current value
  29.     int _minVal;        // Can scale to min and val
  30.     int _maxVal;
  31.     SLDCDATA _scd;
  32.     virtual void CmdCallback(UINT uMsg, MPARAM mp1, MPARAM mp2);
  33.         int _initialPosnSet;
  34.   };
  35. #endif
  36.