Source

gdt / SpriteEd / APP.CPP

Full commit
/* Application class for ObjectWindows */

#include <OWL\OwlAll.H>
#define DLSTDINC_NOLOHIMAKE /* Daybo Logic mustn't make HI LO macros */
#include "Stds\DLStdInc.H"
#include "Headers\TStr.H" /* Widechar/multibyte macros */
#pragma hdrstop

#include "SpriteEd.RH" // Resource defines
#include "App.H" // Application header
#include "MainWin.H" // Main window header
#include "SpriteEd.RH" // Resources header
//---------------------------------------------------------------------------
TSpriteEditorApp::TSpriteEditorApp()
:
	TApplication()
{
}
//---------------------------------------------------------------------------
void TSpriteEditorApp::InitMainWindow()
{
	/* First get app name from resources */
	char appName[30*BYTESPERCHAR];
   size_t sizeAppName = sizeof(appName)-1;
   LoadString(IDS_APPNAME, appName, sizeAppName+1);

	SetMainWindow( new TDecoratedMDIFrame( appName,
														MAKEINTRESOURCE(MENU_MAIN),
														*new TMainWindow ) );
   GetMainWindow()->SetIcon(this, IDI_APPICON); // Set icon
}
//---------------------------------------------------------------------------