Category : C++ Source Code
Archive   : SNAPAP.ZIP
Filename : TDIALCPP.BPT

 
Output of file : TDIALCPP.BPT contained in archive : SNAPAP.ZIP

/*****************************************************************************
*
SNAPAPP_TAG
* %s.CPP
*
* Generated by SnapApp
* TDialog as Main Window
*
****************************************************************************/

#include
#include
SNAPAPP_TAG
#include"%s.h"

/*
SNAPAPP_TAG
** class T%sApp
*/
SNAPAPP_TAG
_CLASSDEF(T%sApp)
SNAPAPP_TAG
class T%sApp : public TApplication
{
public:
SNAPAPP_TAG
T%sApp(LPSTR AName, HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow) :
TApplication(AName, hInstance, hPrevInstance, lpCmdLine, nCmdShow){}

void InitMainWindow();
};

/*
SNAPAPP_TAG
** class T%sWindow
*/
SNAPAPP_TAG
_CLASSDEF(T%sWindow)
SNAPAPP_TAG
class T%sWindow : public TDialog
{
private:

public:
SNAPAPP_TAG
T%sWindow(PTWindowsObject AParent) :
SNAPAPP_TAG
TDialog(AParent, "%s_WINDOW_DIALOG"){}
};

/*
SNAPAPP_TAG
** T%sApp Member functions
*/
SNAPAPP_TAG
void T%sApp::InitMainWindow()
{
SNAPAPP_TAG
MainWindow = new T%sWindow(NULL);
}

/*
** int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
** LPSTR lpCmdLine, int nCmdShow)
*/
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
SNAPAPP_TAG
T%sApp %sApp("%sApp", hInstance, hPrevInstance, lpCmdLine, nCmdShow);

SNAPAPP_TAG
%sApp.Run();

SNAPAPP_TAG
return %sApp.Status;
}