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 / WINDOW.H < prev   
Text File  |  1995-01-04  |  1KB  |  61 lines

  1. // Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
  2. //  All rights reserved
  3.  
  4. #ifndef __WINDOW_H__
  5. #define __WINDOW_H__
  6.  
  7. #define INCL_PM
  8. #define INCL_WIN
  9. #define INCL_GPI
  10. #include <os2.h>             
  11. #include"winbase.h"
  12.  
  13.  
  14. const   ULONG DefaultFlags = FCF_TITLEBAR 
  15.                         | FCF_SYSMENU
  16.                    | FCF_MENU
  17.             | FCF_MINMAX
  18.             | FCF_SIZEBORDER
  19.             | FCF_SHELLPOSITION
  20.             | FCF_TASKLIST
  21.             | FCF_ICON;
  22.  
  23.  
  24.  
  25. class TWindow: public TWinBase
  26. {
  27.    protected:
  28.       
  29.      HWND hwndClient;
  30.      ULONG flCreateFlags;
  31.      CHAR *fTitle;
  32.  
  33.  
  34.   public:
  35.  
  36.      static BOOL fInitialized ;
  37.      TWindow(CHAR *title, ULONG flags, ULONG resource);
  38.      virtual ~TWindow();
  39.      virtual BOOL Init(HAB hab);
  40.      BOOL ShowWindow(int nCmdShow) ;
  41.      BOOL Update(void) ;
  42.      MRESULT WndProc(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2 );
  43.      virtual const char *getClassName(void);
  44.  
  45.      virtual void Register(HAB anchorBlock);
  46.      virtual BOOL MakeFrame(void);
  47.  
  48.      virtual MRESULT doCommand(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2);
  49.  
  50.       HWND GetClient(void);
  51.  
  52.      static MRESULT ClientWndProc(HWND hWnd,ULONG iMessage,
  53.        MPARAM mParam1, MPARAM mParam2);
  54.  
  55.       void scrollWin(LONG hs, LONG vs);
  56.  
  57. };
  58.  
  59.  
  60. #endif
  61.