DragonNest/Third/XTToolkitPro/Samples/UserInterface/GUI_Office11/stdafx.h
2024-12-19 09:48:26 +08:00

101 lines
3 KiB
C++

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
// (c)1998-2008 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
// CONSENT OF CODEJOCK SOFTWARE.
//
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
// SINGLE COMPUTER.
//
// CONTACT INFORMATION:
// support@codejock.com
// http://www.codejock.com
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _UNICODE
#define VC_EXTRALEAN // use stripped down Win32 headers
#endif
#if _MSC_VER > 1200
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later.
#endif
#endif
//#define CONVERTERS
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxcmn.h>
#include <afxrich.h>
#include <afxpriv.h>
#define HORZ_TEXTOFFSET 15
#define VERT_TEXTOFFSET 5
#if (_MSC_VER < 1300)
#define ULONGLONG DWORD
#else
#define PARAFORMAT PARAFORMAT2
#define _paraformat PARAFORMAT2
#endif
class CDisplayIC : public CDC
{
public:
CDisplayIC() { CreateIC(_T("DISPLAY"), NULL, NULL, NULL); }
};
struct CCharFormat : public CHARFORMAT
{
CCharFormat() {cbSize = sizeof(CHARFORMAT);}
BOOL operator==(CCharFormat& cf);
};
struct CParaFormat : public _paraformat
{
CParaFormat() {cbSize = sizeof(_paraformat);}
BOOL operator==(PARAFORMAT& pf);
};
#include "doctype.h"
#include "chicdial.h"
//#define _XTP_STATICLINK
#include <XTToolkitPro.h> // Codejock Software Components
#include <AboutDlg.h> // Sample About Dialog