home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / MESSAGE / MESSAGE.H < prev    next >
C/C++ Source or Header  |  1996-01-10  |  913b  |  52 lines

  1.  
  2. #if    !defined(MESSAGE_H)
  3. #define    MESSAGE_H
  4.  
  5. #if    defined(__cplusplus)
  6.  
  7. class    _TMessageWindow ;
  8.  
  9. class    EXPORT_CLASS    TMessageWindow
  10. {
  11.     protected:
  12.         _TMessageWindow    *win ;
  13.     
  14.     public:
  15.         // 初期化
  16.         TMessageWindow( const char *str,
  17.                         int maxline = 1024,
  18.                         int x = 0, int y = 0,
  19.                         int h = 400, int v = 500 );
  20.         ~TMessageWindow();
  21.  
  22.          // ウインドウ制御
  23. #if    defined(__OWL_FRAMEWIN_H)
  24.         TFrameWindow    *GetWindowPtr()
  25.         {
  26.             return (TFrameWindow*)win ;
  27.         }
  28. #endif
  29.         int        Create();
  30.  
  31.         // 表示
  32.         void    Printf( const char *fmt, ... );
  33.         TMessageWindow&    operator<<( const char* str );
  34.         TMessageWindow&    operator<<( int a );
  35.         TMessageWindow&    operator<<( float a );
  36.         TMessageWindow&    operator<<( void *ptr );
  37. };
  38.  
  39. TMessageWindow*    _export    MessageWindow() ;
  40.  
  41. extern    "C" {
  42. #endif
  43.  
  44. void    _export    wprintf( const char *fmt, ... );
  45.  
  46. #if    defined(__cplusplus)
  47. };
  48. #endif
  49.  
  50. #endif
  51.  
  52.