home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xscrlbar.h < prev    next >
Text File  |  1997-08-12  |  1KB  |  36 lines

  1. #ifndef __OOL_XSCROLBAR_H__
  2. #define __OOL_XSCROLBAR_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XScrollBar                            */
  8. /*                       derived from: XControl                              */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xcontrol.h"
  15.  
  16. #define SC_HORZ   SBS_HORZ
  17. #define SC_VERT   SBS_VERT
  18. #define SC_AUTO   SBS_AUTOTRACK
  19.  
  20.  
  21. class _export_ XScrollBar: public XControl{
  22.       friend void BuildChilds( HWND );
  23.    private:
  24.       XScrollBar( const HWND hwnd): XControl(hwnd) {;}
  25.    public:
  26.       XScrollBar( const XWindow * owner, const XRect& rec=XRect(), const USHORT id = 0, const ULONG style = SC_VERT | SC_AUTO);
  27.       virtual ~XScrollBar() {;}
  28.       SHORT GetPos(void) const ;
  29.       void GetRange( SHORT& first, SHORT& last);
  30.       BOOL SetPos( const LONG pos) const ;
  31.       BOOL SetRange( const SHORT first, const SHORT last, const SHORT sliderPos) const ;
  32.       BOOL SetSliderSize( const SHORT visible, const SHORT total) const ;
  33. };
  34.  
  35. #endif
  36.