contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / contrib / win32 / testw32.cpp
blob4b1ddde2a35aa5e1169b5c43ad886ea4a693a8ab
1 /*********************************************************/
2 /* Test program driver for freetype on Win32 Platform */
3 /* CopyRight(left) G. Ramat 1998 (gcramat@radiostudio.it)*/
4 /* */
5 /*********************************************************/
7 // testw32.cpp : Defines the class behaviors for the application.
8 //
10 #include "stdafx.h"
11 #include "testw32.h"
12 #include "testw32dlg.h"
14 #ifdef _DEBUG
15 #define new DEBUG_NEW
16 #undef THIS_FILE
17 static char THIS_FILE[] = __FILE__;
18 #endif
20 /////////////////////////////////////////////////////////////////////////////
21 // CTestw32App
23 BEGIN_MESSAGE_MAP(CTestw32App, CWinApp)
24 //{{AFX_MSG_MAP(CTestw32App)
25 // NOTE - the ClassWizard will add and remove mapping macros here.
26 // DO NOT EDIT what you see in these blocks of generated code!
27 //}}AFX_MSG
28 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
29 END_MESSAGE_MAP()
31 /////////////////////////////////////////////////////////////////////////////
32 // CTestw32App construction
34 CTestw32App::CTestw32App()
36 // TODO: add construction code here,
37 // Place all significant initialization in InitInstance
40 /////////////////////////////////////////////////////////////////////////////
41 // The one and only CTestw32App object
43 CTestw32App theApp;
45 /////////////////////////////////////////////////////////////////////////////
46 // CTestw32App initialization
48 BOOL CTestw32App::InitInstance()
50 // Standard initialization
51 // If you are not using these features and wish to reduce the size
52 // of your final executable, you should remove from the following
53 // the specific initialization routines you do not need.
55 CTestw32Dlg dlg;
56 m_pMainWnd = &dlg;
57 int nResponse = dlg.DoModal();
58 if (nResponse == IDOK)
60 // TODO: Place code here to handle when the dialog is
61 // dismissed with OK
63 else if (nResponse == IDCANCEL)
65 // TODO: Place code here to handle when the dialog is
66 // dismissed with Cancel
69 // Since the dialog has been closed, return FALSE so that we exit the
70 // application, rather than start the application's message pump.
71 return FALSE;
74 BOOL CTestw32App::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
76 // TODO: Add your specialized code here and/or call the base class
78 return CWinApp::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);