home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / mess1 / myapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-31  |  1.4 KB  |  53 lines

  1. //========================================================================
  2. //  The following example routines have been provided by the Technical
  3. //  Support staff at Borland International.  They are provided as a
  4. //  courtesy and not as part of a Borland product, and as such, are
  5. //  provided without the assurance of technical support or any specific
  6. //  guarantees.
  7. //========================================================================
  8. //  Turbo Vision - Example of message passing
  9. //
  10. //------------------------------------------------------------------------
  11. //
  12. // myapp.h:  The class definition for TMyApplication.
  13. //
  14. //========================================================================
  15.  
  16.  
  17.  
  18. #ifndef _MYAPP_H
  19. #define _MYAPP_H
  20.  
  21.  
  22. #define Uses_TApplication
  23. #define Uses_TMenuBar
  24. #define Uses_TRect
  25. #define Uses_TStatusLine
  26. #define Uses_TEvent
  27. #include <tv.h>
  28.  
  29. //
  30. // class TMyApplication
  31. //      The application object, derived from the abstract class TApplication
  32. //
  33. // Member functions:
  34. //      TMyApplication() - Constructor.
  35. //
  36.  
  37. class TMyApplication : public TApplication
  38. {
  39. public:
  40.     TMyApplication();
  41.     static TMenuBar *initMenuBar(TRect);
  42.     static TStatusLine *initStatusLine(TRect);
  43.     void handleEvent(TEvent&);
  44.     void idle();
  45. private:
  46.     void aboutDlg();
  47.     void window();
  48.     void techDlg();
  49. };
  50.  
  51.  
  52. #endif
  53.