home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / SOURCE.ZIP / mainwin.h < prev    next >
C/C++ Source or Header  |  1995-08-27  |  852b  |  37 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: mainwin.h 1.6 1995/08/21 05:43:49 teb Exp $ */
  8.  
  9. #ifndef __MAINWIN_H__
  10. #define __MAINWIN_H__
  11.  
  12.  
  13. #include<framewin.h>
  14.  
  15.  
  16. #define cm_FileOpen 101
  17. #define cm_FileSaveAs 102
  18.  
  19. class TMainWindow: public TFrameWindow
  20. {
  21.    protected:
  22.       CHAR *fExtension;
  23.    public:
  24.      TMainWindow(ULONG resource, char* title);
  25.      virtual ~TMainWindow();
  26.      virtual void doCommand(WinMsg wm);
  27.      virtual const char *getClassName(void);
  28.      void doFileOpen();
  29.      void readFile();
  30.      void doFileSave();
  31.      void writeFile();
  32.      CHAR *getFileExtension();
  33.      void setFileExtension(CHAR *ext);
  34. };
  35. #endif
  36.  
  37.