home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tybc4 / xped4 / xped4app.h < prev    next >
C/C++ Source or Header  |  1994-02-13  |  2KB  |  90 lines

  1. #if !defined(__xped4app_h)              // Sentry, use file only if it's not already included.
  2. #define __xped4app_h
  3.  
  4. /*  Project xped4
  5.     
  6.     Copyright ⌐ 1993. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    xped4.exe Application
  9.     FILE:         xped4app.h
  10.     AUTHOR:       
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for XpEd4App (TApplication).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22. #include <owl\printer.h>
  23.  
  24. #include <classlib\bags.h>
  25.  
  26.  
  27. #include "xped4app.rh"            // Definition of all resources.
  28.  
  29.  
  30. // TFileDrop class Maintains information about a dropped file, its name, where it was dropped,
  31. // and whether or not it was in the client area
  32. class TFileDrop {
  33. public:
  34.     operator == (const TFileDrop& other) const {return this == &other;}
  35.  
  36.     char*   FileName;
  37.     TPoint  Point;
  38.     BOOL    InClientArea;
  39.  
  40.     HICON   Icon;
  41.     BOOL    DefIcon;
  42.  
  43.     TFileDrop (char*, TPoint&, BOOL, TModule* module);
  44.     ~TFileDrop ();
  45.  
  46.     const char* WhoAmI ();
  47. private:
  48.     //
  49.     // hidden to prevent accidental copying or assignment
  50.     //
  51.     TFileDrop (const TFileDrop&);
  52.     TFileDrop & operator = (const TFileDrop&);
  53. };
  54.  
  55. typedef TIBagAsVector<TFileDrop> TFileList;
  56. typedef TIBagAsVectorIterator<TFileDrop> TFileListIter;
  57.  
  58.  
  59. //{{TApplication = XpEd4App}}
  60. class XpEd4App : public TApplication {
  61. private:
  62.  
  63. private:
  64.     void AddFiles (TFileList* files);
  65.  
  66. public:
  67.     XpEd4App ();
  68.     virtual ~XpEd4App ();
  69.  
  70.     // Public data members used by the print menu commands and Paint routine in MDIChild.
  71.     TPrinter        *Printer;                           // Printer support.
  72.     BOOL            Printing;                           // Printing in progress.
  73.  
  74. //{{XpEd4AppVIRTUAL_BEGIN}}
  75. public:
  76.     virtual void InitMainWindow();
  77.     virtual void InitInstance();
  78. //{{XpEd4AppVIRTUAL_END}}
  79. //{{XpEd4AppRSP_TBL_BEGIN}}
  80. protected:
  81.     void CmHelpAbout ();
  82.     void EvDropFiles (TDropInfo drop);
  83.     void EvWinIniChange (char far* section);
  84. //{{XpEd4AppRSP_TBL_END}}
  85. DECLARE_RESPONSE_TABLE(XpEd4App);
  86. };    //{{XpEd4App}}
  87.  
  88.  
  89. #endif                                      // __xped4app_h sentry.
  90.