#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
        AddWinStyle(WS_BORDER | WS_CAPTION | WS_OVERLAPPEDWINDOW |
                             WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU |
                             WS_THICKFRAME | WS_VISIBLE);
       SetWinInstance(myApp->GetInstance());
       SetWinX(CW_USEDEFAULT);
       SetWinY(CW_USEDEFAULT);
       SetWinWidth(CW_USEDEFAULT);
       SetWinHeight(CW_USEDEFAULT);
       SetWinName(name);
    }
};
#define STDWIN_H
#endif
