home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cl-lib07.zip / pm.zip / usr / include / pm / scrollbar.h < prev    next >
C/C++ Source or Header  |  1995-06-27  |  801b  |  38 lines

  1. #ifndef _SCROLLBAR_H_
  2. #define _SCROLLBAR_H_
  3.  
  4. #ifndef _FACTORYWINDOW_H_
  5. #include <pm/FactoryWindow.h>
  6. #endif
  7.  
  8. #define SBWIDTH WinQuerySysValue (HWND_DESKTOP,SV_CXVSCROLL)
  9. #define SBHEIGHT WinQuerySysValue (HWND_DESKTOP,SV_CYHSCROLL)
  10.  
  11. @interface ScrollBar : FactoryWindow <Archiving>
  12. {
  13. }
  14.  
  15. - initWithId: (ULONG) anId andFlags: (ULONG) flags in: (Window *) parent;
  16.  
  17. - (SHORT) position;
  18. - (SHORT) lowerBound;
  19. - (SHORT) upperBound;
  20.  
  21. - setPosition: (SHORT) position;
  22. - setScrollbar: (SHORT) position withBounds: (SHORT) lower : (SHORT) upper;
  23. - setThumbSizeForVisible: (SHORT) visible of: (SHORT) all;
  24.  
  25. /*
  26.  * Methods for protocol "Archiving"
  27.  */
  28.  
  29. - read: (TypedStream *) aStream;
  30. - write: (TypedStream *) aStream;
  31. - awake;
  32.  
  33. - createInPMWindow: (HWND) hwnd;
  34.  
  35. @end
  36.  
  37. #endif
  38.