mirror of https://github.com/axmolengine/axmol.git
54 lines
845 B
C++
54 lines
845 B
C++
|
// Application application cpp file.
|
|||
|
|
|||
|
// Original file name: test_spriteApp.cpp
|
|||
|
// Generated by TOPS Builder:Project wizard,Date:2010-8-3
|
|||
|
|
|||
|
|
|||
|
#include "test_spriteApp.h"
|
|||
|
#include "test_spriteMainForm.h"
|
|||
|
Ttest_spriteApp::Ttest_spriteApp()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
Ttest_spriteApp::~Ttest_spriteApp()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
Boolean Ttest_spriteApp::EventHandler(EventType* pEvent)
|
|||
|
{
|
|||
|
Boolean bHandled = FALSE;
|
|||
|
|
|||
|
switch(pEvent->eType)
|
|||
|
{
|
|||
|
case EVENT_AppLoad:
|
|||
|
{
|
|||
|
TMainForm *pWin = new TMainForm(this);
|
|||
|
if (pWin)
|
|||
|
{
|
|||
|
SetActiveWindow(pWin);
|
|||
|
}
|
|||
|
else
|
|||
|
{ // <20><><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD><DCA3>˳<EFBFBD>Ӧ<EFBFBD>á<EFBFBD>
|
|||
|
SendStopEvent();
|
|||
|
}
|
|||
|
}
|
|||
|
bHandled = TRUE;
|
|||
|
break;
|
|||
|
|
|||
|
case EVENT_AppStopNotify:
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
bHandled = FALSE;
|
|||
|
break;
|
|||
|
}
|
|||
|
if (FALSE == bHandled)
|
|||
|
{
|
|||
|
return TApplication::EventHandler(pEvent);
|
|||
|
}
|
|||
|
|
|||
|
return bHandled;
|
|||
|
}
|