home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
borllexp
/
blx_1_2
/
stdwin.h
< prev
next >
Wrap
Text File
|
1991-05-02
|
1KB
|
38 lines
// stdwin.h
#include<windows.h>
#include"winapp.h"
#if !defined(STDWIN_H)
/* STDWIN
A class derived from Window. This class creates a standard, overlapped Window
with Scroll bars.
*/
class WinAppStdWindow : public Window
{
public:
WinAppStdWindow(WinApp *myApp, WinClass *wc, char *name) :
Window(myApp,wc)
{
// StdWindow class settings
AddClassStyle(CS_HREDRAW | CS_VREDRAW);
// Window settings: OVERLAPPEDWINDOW includes
// OVERLAPPED, CAPTION, SYSMENU, THICKFRAME,MINIMIZE_BOX,
// and MAXIMIZE_BOX
AddWinStyle(WS_BORDER | WS_OVERLAPPEDWINDOW | WS_VISIBLE);
AddWinStyle(WS_HSCROLL | WS_VSCROLL);
SetWinInstance(myApp->GetInstance());
SetWinX(CW_USEDEFAULT);
SetWinY(CW_USEDEFAULT);
SetWinWidth(CW_USEDEFAULT);
SetWinHeight(CW_USEDEFAULT);
SetWinName(name);
}
};
#define STDWIN_H
#endif