SourceCode/PROMS/FONTS/Size Project/src/XMonoFontDialogTest.cpp

53 lines
1.3 KiB
C++

// XMonoFontDialogTest.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "XMonoFontDialogTest.h"
#include "XMonoFontDialogTestDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXMonoFontDialogTestApp
BEGIN_MESSAGE_MAP(CXMonoFontDialogTestApp, CWinApp)
//{{AFX_MSG_MAP(CXMonoFontDialogTestApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CXMonoFontDialogTestApp construction
CXMonoFontDialogTestApp::CXMonoFontDialogTestApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CXMonoFontDialogTestApp object
CXMonoFontDialogTestApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CXMonoFontDialogTestApp initialization
BOOL CXMonoFontDialogTestApp::InitInstance()
{
#if _MFC_VER < 0x700
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
#endif
CXMonoFontDialogTestDlg dlg;
m_pMainWnd = &dlg;
dlg.DoModal();
return FALSE;
}