home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 3.ddi / OWLINC.ZIP / BCHKBOX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.6 KB  |  61 lines

  1. // ObjectWindows - (C) Copyright 1992 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. #pragma option -Vo-
  15. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  16. #pragma option -po-
  17. #endif
  18.  
  19. _CLASSDEF(TBCheckBox)
  20.  
  21. /* --------------------------------------------------------
  22.   TBCheckBox object
  23.   -------------------------------------------------------- */
  24.  
  25. class _EXPORT TBCheckBox : public TCheckBox
  26. {
  27. public:
  28.     TBCheckBox(PTWindowsObject AParent,int AnId, LPSTR ATitle, int X,
  29.         int Y ,int W, int H, PTGroupBox AGroup,
  30.         PTModule AModule = NULL);
  31.     TBCheckBox(PTWindowsObject AParent, int ResourceId,
  32.             PTGroupBox AGroup, PTModule AModule = NULL);
  33.     static PTStreamable build();
  34.  
  35. protected:
  36.     virtual LPSTR GetClassName()
  37.         {return "BORCHECK";}
  38.     TBCheckBox(StreamableInit) : TCheckBox(streamableInit) {};
  39.  
  40. private:
  41.     virtual const Pchar streamableName() const
  42.         { return "TBCheckBox"; }
  43. };
  44.  
  45. inline Ripstream operator >> ( Ripstream is, RTBCheckBox cl )
  46.     { return is >> (RTStreamable)cl; }
  47. inline Ripstream operator >> ( Ripstream is, RPTBCheckBox cl )
  48.     { return is >> (RPvoid)cl; }
  49.  
  50. inline Ropstream operator << ( Ropstream os, RTBCheckBox cl )
  51.     { return os << (RTStreamable)cl; }
  52. inline Ropstream operator << ( Ropstream os, PTBCheckBox cl )
  53.     { return os << (PTStreamable)cl; }
  54.  
  55. #pragma option -Vo.
  56. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  57. #pragma option -po.
  58. #endif
  59.  
  60. #endif
  61.