1 // UnicodeTester.cpp : Defines the class behaviors for the application.
5 #include "UnicodeTester.h"
6 #include "UnicodeTesterDlg.h"
9 #include "FirstFoundation.h"
12 #include "SetupEngine.h"
13 #include "SetupFoundation.h"
15 #include "UnicodeBlocks.h"
16 #include "UnicodeCharDataMap.h"
21 static char THIS_FILE
[] = __FILE__
;
24 /////////////////////////////////////////////////////////////////////////////
27 BEGIN_MESSAGE_MAP(CUnicodeTesterApp
, CWinApp
)
28 //{{AFX_MSG_MAP(CUnicodeTesterApp)
29 // NOTE - the ClassWizard will add and remove mapping macros here.
30 // DO NOT EDIT what you see in these blocks of generated code!
32 ON_COMMAND(ID_HELP
, CWinApp::OnHelp
)
35 /////////////////////////////////////////////////////////////////////////////
36 // CUnicodeTesterApp construction
38 CUnicodeTesterApp::CUnicodeTesterApp()
40 // TODO: add construction code here,
41 // Place all significant initialization in InitInstance
44 CUnicodeTesterApp::~CUnicodeTesterApp()
46 Unicode::Blocks::Mapping::explicitDestroy ();
47 Unicode::CharDataMap::explicitDestroy ();
49 SetupFoundation::remove();
50 SetupEngine::remove();
53 /////////////////////////////////////////////////////////////////////////////
54 // The one and only CUnicodeTesterApp object
56 CUnicodeTesterApp theApp
;
58 /////////////////////////////////////////////////////////////////////////////
59 // CUnicodeTesterApp initialization
61 BOOL
CUnicodeTesterApp::InitInstance()
63 AfxEnableControlContainer();
65 // Standard initialization
66 // If you are not using these features and wish to reduce the size
67 // of your final executable, you should remove from the following
68 // the specific initialization routines you do not need.
71 Enable3dControls(); // Call this when using MFC in a shared DLL
73 Enable3dControlsStatic(); // Call this when linking to MFC statically
77 SetupFoundation::Data setupFoundationData;
78 SetupFoundation::setupDefaultMFCData (&setupFoundationData);
79 SetupFoundation::install (&setupFoundationData);
81 //-- install the object system
82 SetupEngine::Data setupEngineData;
83 SetupEngine::setupDefaultMFCData (&setupEngineData);
84 setupEngineData.use3dSystem = false;
85 SetupEngine::install (&setupEngineData);
87 CUnicodeTesterDlg dlg
;
89 int nResponse
= dlg
.DoModal();
90 if (nResponse
== IDOK
)
92 // TODO: Place code here to handle when the dialog is
95 else if (nResponse
== IDCANCEL
)
97 // TODO: Place code here to handle when the dialog is
98 // dismissed with Cancel
101 // Since the dialog has been closed, return FALSE so that we exit the
102 // application, rather than start the application's message pump.