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

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __BWINDOW_H
  4. #define __BWINDOW_H
  5.  
  6. // BWINDOW.H
  7. // Defines type TBWindow, a BWCC friendly derivation of TWindow.
  8. //
  9.  
  10. #ifndef __WINDOW_H
  11. #include <window.h>
  12. #endif
  13.  
  14. #pragma option -Vo-
  15. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  16. #pragma option -po-
  17. #endif
  18.  
  19. _CLASSDEF(TBWindow)
  20.  
  21. /* TBWindow */
  22.  
  23. class _EXPORT TBWindow : public TWindow
  24. {
  25. public:
  26.     TBWindow(PTWindowsObject AParent, LPSTR AName,
  27.          PTModule AModule = NULL);
  28.  
  29.     static PTStreamable build();
  30.  
  31. protected:
  32.     virtual LPSTR GetClassName()
  33.         {return "TBWindow";}
  34.     virtual void GetWindowClass(WNDCLASS _FAR & AWndClass);
  35.  
  36.     TBWindow(StreamableInit) : TWindow(streamableInit) {};
  37.  
  38. private:
  39.     virtual const Pchar streamableName() const
  40.         { return "TBWindow"; }
  41. };
  42.  
  43. inline Ripstream operator >> ( Ripstream is, RTBWindow cl )
  44.     { return is >> (RTStreamable)cl; }
  45. inline Ripstream operator >> ( Ripstream is, RPTBWindow cl )
  46.     { return is >> (RPvoid)cl; }
  47.  
  48. inline Ropstream operator << ( Ropstream os, RTBWindow cl )
  49.     { return os << (RTStreamable)cl; }
  50. inline Ropstream operator << ( Ropstream os, PTBWindow cl )
  51.     { return os << (PTStreamable)cl; }
  52.  
  53. #pragma option -Vo.
  54. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  55. #pragma option -po.
  56. #endif
  57.  
  58. #endif
  59.