home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
blx12.arj
/
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