#ifndef __OOL_XSCROLBAR_H__
#define __OOL_XSCROLBAR_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------ OS/2 version 0.01a */
/*===========================================================================*/
/*                              class: XScrollBar                            */
/*                       derived from: XControl                              */
/*                        last update: 4/96                                  */
/*                      programmed by: Stefan von Brauk                      */
/*===========================================================================*/


#include "xcontrol.h"

#define SC_HORZ   SBS_HORZ
#define SC_VERT   SBS_VERT
#define SC_AUTO   SBS_AUTOTRACK


class _export_ XScrollBar: public XControl{
       friend class XFrameWindow;
     private:
        XScrollBar( HWND hwnd);
     public:
        XScrollBar( XWindow * owner, XRect * rec, USHORT id = 0, ULONG style = SC_VERT | SC_AUTO);
        virtual ~XScrollBar() {;}
        BOOL SetPos( LONG pos);
        BOOL SetRange( SHORT first, SHORT last, SHORT sliderPos);
        BOOL SetSliderSize( SHORT visible, SHORT total);
};

#endif
