home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / stream / myapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-30  |  1.4 KB  |  51 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. //
  9. // myapp.h:  The class definition for TMyApp.
  10. //
  11.  
  12. //
  13. // class TMyApp
  14. //      The application object, derived from the abstract class TApplication
  15. //
  16. // Member functions:
  17. //      TMyApp - Constructor
  18. //      initMenuBar - custom menu
  19. //      initStatusLine - custom status line
  20. //      handleEvent - now handling menu events
  21. //      aboutDlg - creates and shows about box
  22. //      window - creates a window and inserts into desktop
  23. //
  24.  
  25. class TMyApp : public TApplication
  26. {
  27.  
  28. public:
  29.  
  30.     TMyApp();
  31.     static TMenuBar *initMenuBar( TRect r );
  32.     static TStatusLine *initStatusLine( TRect r );
  33.     virtual void handleEvent( TEvent& event);
  34.     virtual void idle();
  35.  
  36. private:
  37.  
  38.     void aboutDlg();
  39.     void window();
  40.     void funkView();
  41.  
  42.     void restoreDeskTop();
  43.     void loadDeskTop(fpstream& s);
  44.     void storeDeskTop(fpstream& s);
  45.     void saveDeskTop();
  46.  
  47.     THeapView *heap;
  48.     TClockView *clock;
  49.  
  50. };
  51.