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

  1. // ObjectWindows - (C) Copyright 1991 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. /* --------------------------------------------------------
  11.   TBButton object
  12.   -------------------------------------------------------- */
  13.  
  14. _CLASSDEF(TBButton)
  15.  
  16. class _EXPORT TBButton : public TButton
  17. {
  18. public:
  19.     TBButton(PTWindowsObject AParent, int AnId, LPSTR AText,
  20.             int X, int Y, int W, int H, BOOL IsDefault, 
  21.         PTModule AModule = NULL);
  22.     TBButton(PTWindowsObject AParent, int ResourceId,
  23.         PTModule AModule = NULL);
  24.     static PTStreamable build();
  25.  
  26. protected:
  27.     virtual LPSTR GetClassName()
  28.         {return "BORBTN";}
  29.     TBButton(StreamableInit) : TButton(streamableInit) {};
  30.  
  31. private:
  32.     virtual const Pchar streamableName() const
  33.         { return "TBButton"; }
  34. };
  35.  
  36. inline Ripstream operator >> ( Ripstream is, RTBButton cl )
  37.     { return is >> (RTStreamable)cl; }
  38. inline Ripstream operator >> ( Ripstream is, RPTBButton cl )
  39.     { return is >> (RPvoid)cl; }
  40.  
  41. inline Ropstream operator << ( Ropstream os, RTBButton cl )
  42.     { return os << (RTStreamable)cl; }
  43. inline Ropstream operator << ( Ropstream os, PTBButton cl )
  44.     { return os << (PTStreamable)cl; }
  45.  
  46. #endif
  47.