stdafx.h

来自「c4.5决策树的实现,应用于一个医学诊断」· C头文件 代码 · 共 61 行

H
61
字号
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__D3EA2141_A17D_4773_B806_CA92310B7006__INCLUDED_)
#define AFX_STDAFX_H__D3EA2141_A17D_4773_B806_CA92310B7006__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WINVER 0x500

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxdb.h>

#include "stdlib.h"

#define _SCB_REPLACE_MINIFRAME


// fix the for(int i...) bug for VC6
#if _MSC_VER == 1200
#define for if(false);else for
#endif

// Global constants
#define WM_USER_SELCHANGE (WM_USER + 1)	// Notifies the selected object was changed
#define WM_USER_ARTIFEATURE_FINISH (WM_USER + 2)	// alculating features of an arti area finished
#define WM_USER_AUTOFEATURE_FINISH (WM_USER + 3)	// alculating features of an auto area finished

#define THUMB_SIZE 80	// The size of the Thumbnail, both wid and hei
#define MOVE_PER_PIXEL 3
#define ZOOM_RATIO 1.005f	// Zoom to ZOOM_RATIO for the mouse move every MOVE_PER_PIXEL pixels
#define CONTRAST_RATIO 1.01f	// Set contrast to CONTRAST_RATIO for the mouse move every MOVE_PER_PIXEL pixels
#define BRIGHT_OFFSET 2	// Offset brightness BRIGHT_OFFSET for the mouse move every MOVE_PER_PIXEL pixels
#define LOCALAMP_SIZE 120	// Local Amp window size
#define VERTEX_SIZE 5	// The size of mark vertex drawn on the screen
#define VERTEX_AREA 7	// The range of mark vertex that can drag it
#define INVALID_VERTEX (~((DWORD)0))	// The value specifying not an index of a vertex
#define MM_PER_PIX 0.35273368606701940035273368606702 // millimeter per pixel
#ifndef M_PI
	#define M_PI 3.14159265358979326264
#endif

extern CDatabase gDbObj;	// the global database object

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__D3EA2141_A17D_4773_B806_CA92310B7006__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?