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
Wrap
Text File
|
1995-01-04
|
1KB
|
61 lines
// Developer Helper Object Set, (C) 1994 Thomas E. Bednarz, Jr.
// All rights reserved
#ifndef __WINDOW_H__
#define __WINDOW_H__
#define INCL_PM
#define INCL_WIN
#define INCL_GPI
#include <os2.h>
#include"winbase.h"
const ULONG DefaultFlags = FCF_TITLEBAR
| FCF_SYSMENU
| FCF_MENU
| FCF_MINMAX
| FCF_SIZEBORDER
| FCF_SHELLPOSITION
| FCF_TASKLIST
| FCF_ICON;
class TWindow: public TWinBase
{
protected:
HWND hwndClient;
ULONG flCreateFlags;
CHAR *fTitle;
public:
static BOOL fInitialized ;
TWindow(CHAR *title, ULONG flags, ULONG resource);
virtual ~TWindow();
virtual BOOL Init(HAB hab);
BOOL ShowWindow(int nCmdShow) ;
BOOL Update(void) ;
MRESULT WndProc(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2 );
virtual const char *getClassName(void);
virtual void Register(HAB anchorBlock);
virtual BOOL MakeFrame(void);
virtual MRESULT doCommand(HWND hWnd, ULONG Message, MPARAM mParam1, MPARAM mParam2);
HWND GetClient(void);
static MRESULT ClientWndProc(HWND hWnd,ULONG iMessage,
MPARAM mParam1, MPARAM mParam2);
void scrollWin(LONG hs, LONG vs);
};
#endif