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 / WINBASE.H < prev    next >
Text File  |  1995-01-02  |  1KB  |  51 lines

  1. // Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
  2. //  All rights reserved
  3.  
  4.  
  5. #ifndef __WINBASE_H__
  6. #define __WINBASE_H__
  7.  
  8. #define INCL_PM
  9. #define INCL_WIN
  10. #define INCL_GPI
  11. #include <os2.h>             
  12. #include"object.h"
  13.  
  14.  
  15. const ULONG WinBase_NoResource = 0;
  16.  
  17.  
  18. class TWinBase : public TObject
  19. {
  20.  
  21.    protected:
  22.      HWND hwndFrame;
  23.      ULONG fResource;
  24.  
  25.       HPS getScreenPS();
  26.    public:
  27.       TWinBase(ULONG resource);
  28.       virtual ~TWinBase(void);
  29.       virtual BOOL Init(HAB hab)=0;
  30.       virtual const char *getClassName(void);
  31.       HWND getFrame(void);
  32.       virtual BOOL MakeFrame(void)=0;
  33.       virtual MRESULT doCommand(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2)=0;
  34.  
  35.       BOOL isEnabled();
  36.       BOOL enableUpdate(BOOL enable);
  37.       BOOL isVisible();
  38.  
  39.       virtual BOOL setParent(TWinBase *parent, BOOL redraw);
  40.       BOOL isChild(TWinBase *parent);
  41.  
  42.       void setWindowPosition(LONG x, LONG y, LONG cx, LONG cy, ULONG fl);
  43.       void getWindowPosition(LONG &x, LONG &y, LONG &cx, LONG &cy);
  44.  
  45.       void Update();
  46.  
  47. };
  48.  
  49.  
  50. #endif  //winbase
  51.