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

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __BRADIO_H
  4. #define __BRADIO_H
  5.  
  6. #ifndef __RADIOBUT_H
  7. #include <radiobut.h>
  8. #endif
  9.  
  10. #pragma option -Vo-
  11. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  12. #pragma option -po-
  13. #endif
  14.  
  15. _CLASSDEF(TBRadioButton)
  16.  
  17. /* --------------------------------------------------------
  18.   TBRadioButton object
  19.   -------------------------------------------------------- */
  20.  
  21. class _EXPORT TBRadioButton : public TRadioButton
  22. {
  23. public:
  24.   TBRadioButton(PTWindowsObject AParent, int AnId, LPSTR ATitle,
  25.                  int X, int Y, int W, int H, PTGroupBox AGroup,
  26.          PTModule AModule = NULL);
  27.   TBRadioButton(PTWindowsObject AParent, int ResourceId, PTGroupBox AGroup,
  28.          PTModule AModule = NULL)
  29.               : TRadioButton(AParent, ResourceId, AGroup, AModule){};
  30.   static PTStreamable build();
  31.  
  32. protected:
  33.   virtual LPSTR GetClassName()
  34.       {return "BORRADIO";}
  35.   TBRadioButton(StreamableInit) : TRadioButton(streamableInit) {};
  36.  
  37. private:
  38.     virtual const Pchar streamableName() const
  39.         { return "TBRadioButton"; }
  40. };
  41.  
  42. inline Ripstream operator >> ( Ripstream is, RTBRadioButton cl )
  43.     { return is >> (RTStreamable)cl; }
  44. inline Ripstream operator >> ( Ripstream is, RPTBRadioButton cl )
  45.     { return is >> (RPvoid)cl; }
  46.  
  47. inline Ropstream operator << ( Ropstream os, RTBRadioButton cl )
  48.     { return os << (RTStreamable)cl; }
  49. inline Ropstream operator << ( Ropstream os, PTBRadioButton cl )
  50.     { return os << (PTStreamable)cl; }
  51.  
  52. #pragma option -Vo.
  53. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  54. #pragma option -po.
  55. #endif
  56.  
  57. #endif
  58.