home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / BCPPOWL1.ZIP / OWLINC.ZIP / BDIVIDER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-28  |  1.3 KB  |  46 lines

  1. // ObjectWindows - (C) Copyright 1991 by Borland International
  2.  
  3. #ifndef __BDIVIDER_H
  4. #define __BDIVIDER_H
  5.  
  6. #ifndef __CONTROL_H
  7. #include <control.h>
  8. #endif
  9.  
  10. _CLASSDEF(TBDivider)
  11.  
  12. /* --------------------------------------------------------
  13.   TBDivider object
  14.   -------------------------------------------------------- */
  15. class _EXPORT TBDivider : public TControl
  16. {
  17. public:
  18.     TBDivider(PTWindowsObject AParent, int AnId, LPSTR AText,
  19.             int X, int Y, int W, int H, BOOL IsVertical, 
  20.         BOOL IsBump, PTModule AModule = NULL);
  21.     TBDivider(PTWindowsObject AParent, int ResourceId,
  22.         PTModule AModule = NULL);
  23.     static PTStreamable build();
  24.  
  25. protected:
  26.     virtual LPSTR GetClassName()
  27.         {return "BORSHADE";}
  28.     TBDivider(StreamableInit) : TControl(streamableInit) {};
  29.  
  30. private:
  31.     virtual const Pchar StreamableName() const
  32.         { return "TBDivider"; }
  33. };
  34.  
  35. inline Ripstream operator >> ( Ripstream is, RTBDivider cl )
  36.     { return is >> (RTStreamable)cl; }
  37. inline Ripstream operator >> ( Ripstream is, RPTBDivider cl )
  38.     { return is >> (RPvoid)cl; }
  39.  
  40. inline Ropstream operator << ( Ropstream os, RTBDivider cl )
  41.     { return os << (RTStreamable)cl; }
  42. inline Ropstream operator << ( Ropstream os, PTBDivider cl )
  43.     { return os << (PTStreamable)cl; }
  44.  
  45. #endif
  46.