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

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __INPUTDIA_H
  4. #define __INPUTDIA_H
  5.  
  6. #ifndef __DIALOG_H
  7. #include <dialog.h>
  8. #endif
  9.  
  10. #pragma option -Vo-
  11. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  12. #pragma option -po-
  13. #endif
  14.  
  15. _CLASSDEF(TInputDialog)
  16.  
  17.   /* TInputDialog */
  18. class _EXPORT TInputDialog : public TDialog
  19. {
  20. public:
  21.     LPSTR Prompt;
  22.     LPSTR Buffer;
  23.     WORD BufferSize;
  24.  
  25.     TInputDialog(PTWindowsObject AParent, LPSTR ATitle,
  26.               LPSTR APrompt, LPSTR ABuffer, WORD ABufferSize,
  27.               PTModule AModule = NULL);
  28.     void TransferData(WORD Direction);
  29.  
  30.     static PTStreamable build();
  31.  
  32. protected:
  33.     virtual void SetupWindow();
  34.     TInputDialog(StreamableInit) : TDialog(streamableInit) {};
  35.     virtual void write (Ropstream os);
  36.     virtual Pvoid read (Ripstream is);
  37.  
  38. private:
  39.     virtual const Pchar streamableName() const
  40.         { return "TInputDialog"; }
  41. };
  42.  
  43. inline Ripstream operator >> ( Ripstream is, RTInputDialog cl )
  44.     { return is >> (RTStreamable )cl; }
  45. inline Ripstream operator >> ( Ripstream is, RPTInputDialog cl )
  46.     { return is >> (RPvoid)cl; }
  47.  
  48. inline Ropstream operator << ( Ropstream os, RTInputDialog cl )
  49.     { return os << (RTStreamable )cl; }
  50. inline Ropstream operator << ( Ropstream os, PTInputDialog 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.