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

  1. // ObjectWindows - (C) Copyright 1991 by Borland International
  2.  
  3. #ifndef __BCHKBOX_H
  4. #define __BCHKBOX_H
  5.  
  6. #ifndef __CHECKBOX_H
  7. #include <checkbox.h>
  8. #endif
  9.  
  10. #ifndef __GROUPBOX_H
  11. #include <groupbox.h>
  12. #endif
  13.  
  14. _CLASSDEF(TBCheckBox)
  15.  
  16. /* --------------------------------------------------------
  17.   TBCheckBox object
  18.   -------------------------------------------------------- */
  19.  
  20. class _EXPORT TBCheckBox : public TCheckBox
  21. {
  22. public:
  23.     TBCheckBox(PTWindowsObject AParent,int AnId, LPSTR ATitle, int X,
  24.         int Y ,int W, int H, PTGroupBox AGroup, 
  25.         PTModule AModule = NULL);
  26.     TBCheckBox(PTWindowsObject AParent, int ResourceId,
  27.             PTGroupBox AGroup, PTModule AModule = NULL);
  28.     static PTStreamable build();
  29.     
  30. protected:
  31.     virtual LPSTR GetClassName()
  32.         {return "BORCHECK";}
  33.     TBCheckBox(StreamableInit) : TCheckBox(streamableInit) {};
  34.  
  35. private:
  36.     virtual const Pchar streamableName() const
  37.         { return "TBCheckBox"; }
  38. };
  39.  
  40. inline Ripstream operator >> ( Ripstream is, RTBCheckBox cl )
  41.     { return is >> (RTStreamable)cl; }
  42. inline Ripstream operator >> ( Ripstream is, RPTBCheckBox cl )
  43.     { return is >> (RPvoid)cl; }
  44.  
  45. inline Ropstream operator << ( Ropstream os, RTBCheckBox cl )
  46.     { return os << (RTStreamable)cl; }
  47. inline Ropstream operator << ( Ropstream os, PTBCheckBox cl )
  48.     { return os << (PTStreamable)cl; }
  49.  
  50. #endif
  51.