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

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

/*****************************************************************************
*
SNAPAPP_TAG
* %s.CPP
*
* Generated by SnapApp
*
****************************************************************************/

#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%sMDIFrame
*/
SNAPAPP_TAG
_CLASSDEF(T%sMDIFrame)
SNAPAPP_TAG
class T%sMDIFrame : public TMDIFrame
{
private:

public:
SNAPAPP_TAG
T%sMDIFrame() :
SNAPAPP_TAG
TMDIFrame("%s", "%s_MENU_ID")
{
ChildMenuPos = 1;
}

void IDMFileNew(RTMessage) = [CM_FIRST + IDM_FILE_NEW]
{
GetApplication()->MakeWindow(new TWindow(this, "Child Window"));
}
};

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

/*
** 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;
}