missing project/build files
[client-tools.git] / src / external / 3rd / application / UnicodeTester / win32 / UnicodeTester.cpp
blob9f1e9809498d6d015195fb5193900726a84aa23b
1 // UnicodeTester.cpp : Defines the class behaviors for the application.
2 //
4 #include "stdafx.h"
5 #include "UnicodeTester.h"
6 #include "UnicodeTesterDlg.h"
8 /*
9 #include "FirstFoundation.h"
10 #include "Misc.h"
11 #include "Fatal.h"
12 #include "SetupEngine.h"
13 #include "SetupFoundation.h"
15 #include "UnicodeBlocks.h"
16 #include "UnicodeCharDataMap.h"
18 #ifdef _DEBUG
19 #define new DEBUG_NEW
20 #undef THIS_FILE
21 static char THIS_FILE[] = __FILE__;
22 #endif
24 /////////////////////////////////////////////////////////////////////////////
25 // CUnicodeTesterApp
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!
31 //}}AFX_MSG
32 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
33 END_MESSAGE_MAP()
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.
70 #ifdef _AFXDLL
71 Enable3dControls(); // Call this when using MFC in a shared DLL
72 #else
73 Enable3dControlsStatic(); // Call this when linking to MFC statically
74 #endif
76 //-- install core
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;
88 m_pMainWnd = &dlg;
89 int nResponse = dlg.DoModal();
90 if (nResponse == IDOK)
92 // TODO: Place code here to handle when the dialog is
93 // dismissed with OK
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.
103 return FALSE;