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

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