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

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