home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / MAINWIN.H < prev    next >
C/C++ Source or Header  |  1995-09-03  |  874b  |  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.7 1995/09/03 01:54:17 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(char *fname);
  30.      void doFileSave();
  31.      void writeFile(char *fname);
  32.      CHAR *getFileExtension();
  33.      void setFileExtension(CHAR *ext);
  34. };
  35. #endif
  36.  
  37.