home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 038 / dho_9a.zip / MAINWIN.H < prev    next >
Text File  |  1994-10-12  |  773b  |  33 lines

  1. // Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
  2. //  All rights reserved
  3.  
  4. #ifndef __MAINWIN_H__
  5. #define __MAINWIN_H__
  6. #define INCL_WIN
  7. #include<os2.h>
  8. #include"window.h"
  9. #include"string.h"
  10.  
  11. #define cm_FileOpen 101
  12. #define cm_FileSaveAs 102
  13.  
  14. class TMainWindow: public TWindow
  15. {
  16.    protected:
  17.       CHAR *fExtension;
  18.    public:
  19.      TMainWindow(CHAR *title, ULONG flags, ULONG resource);
  20.      virtual ~TMainWindow();
  21.      virtual MRESULT doCommand(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2);
  22.      virtual const char *getClassName(void);
  23.      void doFileOpen();
  24.      void readFile();
  25.      void doFileSave();
  26.      void writeFile();
  27.  
  28.      CHAR *getFileExtension();
  29.      void setFileExtension(CHAR *ext);
  30. };
  31. #endif
  32.  
  33.