#DEFINE CR		CHR(13)
#DEFINE LF		CHR(10)
#DEFINE CRLF	CHR(13)+CHR(10)
#DEFINE TAB		CHR(9)

* Messagebox constants
#DEFINE MSG_YESNO	36
#DEFINE MSG_YES		6
#DEFINE MSG_NO		7

*Shortcut menu prompts
#DEFINE MENU_VIEW_LOC				"查看(\<V)"
#DEFINE MENU_VIEW_LGICON_LOC		"大图标(\<G)"
#DEFINE MENU_VIEW_SMICON_LOC		"小图标(\<M)"
#DEFINE MENU_VIEW_LIST_LOC			"列表(\<L)"
#DEFINE MENU_VIEW_DETAILS_LOC		"详细资料(\<D)"

#DEFINE MENU_CUT_LOC				"剪切(\<T)"
#DEFINE MENU_COPY_LOC				"复制(\<C)"
#DEFINE MENU_PASTE_LOC				"粘贴(\<P)"
#DEFINE MENU_PASTELINK_LOC			"粘贴链接(\<L)"
#DEFINE MENU_UNDO_LOC				"撤消(\<U)"

#DEFINE MENU_CREATELINK_LOC			"创建链接(\<L)"
#DEFINE MENU_REMOVE_LOC				"移去(\<V)"
#DEFINE MENU_RENAME_LOC				"重命名(\<M)"
#DEFINE MENU_NEW_LOC				"新建(\<N)"
#DEFINE MENU_NEW_FOLDER_LOC			"文件夹(\<F)"
#DEFINE MENU_NEW_ITEM_LOC			"数据项(\<I)"
#DEFINE MENU_NEW_OBJECT_LOC			"对象(\<O)"
#DEFINE MENU_NEW_LINK_LOC			"链接(\<L)"
#DEFINE MENU_PROPERTIES_LOC			"属性(\<R)"

#DEFINE MENU_QVIEW_LOC				"快速查看(\<Q)"
#DEFINE MENU_SHOW_LOC				"显示(\<H)"
#DEFINE MENU_OPENWITH_LOC			"用于打开的工具(\<E)..."
#DEFINE MENU_PRINT_LOC				"打印(\<P)"

#DEFINE MENU_NEWFORM_LOC			"新建表单(\<W)"
#DEFINE MENU_NEWREPO_LOC			"新建报表(\<W)"
#DEFINE MENU_NEWAPP_LOC				"新建应用程序(\<W)"
#DEFINE MENU_NEWDATA_LOC			"新建数据库(\<W)"
#DEFINE MENU_NEWTABLE_LOC			"新建表(\<W)"

#DEFINE MENU_ACTIVEX_LOC			"刷新控件(\<S)"
#DEFINE MENU_SYSTEM_LOC				"在系统中安装(\<Y)"
#DEFINE MENU_NEWCLSID_LOC			"更改已注册的类(\<S)..."
#DEFINE MENU_ADDFORM_LOC			"添加至表单(\<F)"
#DEFINE MENU_ADDPROJECT_LOC			"添加至项目(\<A)"
#DEFINE MENU_MODIFY_LOC				"修改(\<D)..."
#DEFINE MENU_RUN_LOC				"运行(\<N)"
#DEFINE MENU_TYPELIB_LOC			"查看类型库(\<W)..."
#DEFINE MENU_REGREMOTE_LOC			"远程注册(\<G)..."
#DEFINE MENU_VERSION_LOC			"版本信息(\<I)..."

#DEFINE MENU_SAMPLE_LOC				"查看示例(\<S)"
#DEFINE MENU_SAMPLEOPEN_LOC			"打开(\<O)"
#DEFINE MENU_SAMPLERUN_LOC			"运行(\<N)"
#DEFINE MENU_HELP_LOC				"帮助(\<H)..."
#DEFINE MENU_WEBHELP_LOC			"扩展的 Web 帮助(\<X)..."
#DEFINE MENU_PREVIEW_LOC			"预览(\<W)"
#DEFINE MENU_OPEN_LOC				"打开(\<O)"
#DEFINE MENU_ADDHYPER_LOC			"向表单添加超级链接(\<F)..."
#DEFINE MENU_CLSBROWSER_LOC			"在浏览器中查看(\<B)"
#DEFINE MENU_CLASSFORM_LOC			"创建表单(\<F)..."

#DEFINE MENU_SETWALL_LOC			"设置 VFP 墙纸"
#DEFINE MENU_CLEARWALL_LOC			"清除 VFP 墙纸"
#DEFINE MENU_FORMWALL_LOC			"设置表单墙纸(\<W)"

#DEFINE MENU_BROWSER_LOC			"浏览(\<B)"
#DEFINE MENU_QUICKFORM_LOC			"快速表单(\<Q)"
#DEFINE MENU_QUICKREPORT_LOC		"快速报表(\<K)"

#DEFINE MENU_MAILMERGE_LOC			"Word 邮件合并(\<W)"
#DEFINE MENU_PIVOT_LOC				"Excel 透视表(\<E)"
#DEFINE MENU_OUTHTML_LOC			"输出至 HTML(\<O)"

#DEFINE MENU_OPENCATALOG_LOC		"打开目录(\<O)"
#DEFINE MENU_ADDCATALOG_LOC			"添加目录(\<A)"

#DEFINE MENU_BUILD_LOC				"连编(\<B)"

* Shared Objects
#DEFINE OBJ_SHARED					"VFPGLRY!SHAREDOBJ"
#DEFINE OBJ_GLRYUTIL				"VFPGLRY!GLRYUTILOBJ"
#DEFINE OBJ_REGISTRY				"VFPGLRY!REGOBJ"


#DEFINE WIN_PJX_DESIGN_LOC			"项目管理器 -"
#DEFINE WIN_SCX_DESIGN_LOC			"表单设计器 -"
#DEFINE WIN_VCX_DESIGN_LOC			"类设计器 -"
#DEFINE WIN_FRX_DESIGN_LOC			"报表设计器 -"
#DEFINE WIN_MNX1_DESIGN_LOC			"菜单设计器 -"
#DEFINE WIN_MNX2_DESIGN_LOC			"快捷菜单设计器 -"
#DEFINE WIN_DBC_DESIGN_LOC			"数据库设计器 -"
#DEFINE WIN_PJX_DESIGN_FLAG			1
#DEFINE WIN_SCX_DESIGN_FLAG			2
#DEFINE WIN_VCX_DESIGN_FLAG			4
#DEFINE WIN_FRX_DESIGN_FLAG			8
#DEFINE WIN_MNX1_DESIGN_FLAG		16
#DEFINE WIN_MNX2_DESIGN_FLAG		32
#DEFINE WIN_DBC_DESIGN_FLAG			64

* File Extensions
#DEFINE	LOCALSRV_EXTN		"EXE"
#DEFINE	INPROCSRV_EXTN		"DLL"
#DEFINE	TYPELIB_EXTN		"TLB"
#DEFINE	TYPELIB2_EXTN		"OLB"
#DEFINE	REMOTEREG_EXTN		"VBR"
#DEFINE	CONTROL_EXTN		"OCX"
#DEFINE	PROJECT_EXTN		"PJX"
#DEFINE	FORM_EXTN			"SCX"
#DEFINE	CLASS_EXTN			"VCX"
#DEFINE	REPORT_EXTN			"FRX"

#DEFINE	OLECONTROL_CLASS	"OLECONTROL"

* _ActiveXFolder
#DEFINE C_DEFACTX_PARENT	"ACTXSYSCTRLS"
#DEFINE REGPROMPT1_LOC	"在“选项”对话框中未找到已注册的 ActiveX 控件。"+"是否希望搜索整个注册表？"

#DEFINE MSG_ADDACTIVEX1_LOC "正在读取 ActiveX 组件的注册表..."
#DEFINE MSG_ADDACTIVEX2_LOC	"已处理"
#DEFINE MSG_ADDACTIVEX3_LOC	"% 已完成"
#DEFINE MSG_ADDACTIVEX4_LOC	"正在将 ActiveX 数据项添加至目录..."
#DEFINE MSG_ADDACTIVEX5_LOC "正在搜索可用类的注册表..."
#DEFINE TMP_ADDACTIVEXTMP_LOC	"正在刷新目录..."
#DEFINE HKEY_CLASSES_ROOT		-2147483648  && BITSET(0,31)
#DEFINE HKEY_CURRENT_USER		-2147483647  && BITSET(0,31)+1


#DEFINE VFP_OPTIONS_KEY1		"Software\Microsoft\VisualFoxPro\"
#DEFINE VFP_OPTIONS_KEY2		"\Options\OLEList"
#DEFINE CLSID_KEY				"CLSID"
#DEFINE PROGID_KEY				"\ProgID"
#DEFINE CONTROL_KEY				"Control"
#DEFINE SERVER_KEY				"Programmable"
#DEFINE SHELL_KEY				"\Shell\"
#DEFINE INPROC_KEY				"InProcServer32"
#DEFINE LOCALSVR_KEY			"LocalServer32"

*_ACTIVEXITEM
#DEFINE DEFWIDTH	200
#DEFINE DEFHEIGHT	150
#DEFINE ACTXCONTROL	0
#DEFINE ACTXDLLSVR	1
#DEFINE ACTXEXESVR	2
#DEFINE	MSG_GETCONTROL_LOC	"选择控件的目录:"
#DEFINE ERR_BADCOPY_LOC		"无法将 ActiveX 文件复制到本地机。请检查访问或写入问题。"
#DEFINE MSG_GOODINSTALL_LOC	"已成功地安装 ActiveX 组件。"
#DEFINE MSG_NOVBRFILE_LOC 	"无法定位带有 ActiveX 服务程序的相关的 VBR 文件。请确认已作为服务程序安装在相同目录。"
#DEFINE	ERR_NOACTXFILE_LOC	"此数据项的文件名不存在。"
#DEFINE WINSYS_NT	"\SYSTEM32\"
#DEFINE	WINSYS_W95	"\SYSTEM\"
#DEFINE	MSG_NOREGSVR32_LOC	"无法在 Windows 系统文件夹中定位 REGSVR32.EXE。请确认是否已正确安装。"
#DEFINE REGSVR_FILE			"REGSVR32.EXE"
#DEFINE CLIREG_FILE			"CLIREG32.EXE"
#DEFINE MSG_UPDATEFILE_LOC		"是否希望更新此数据项，以便指向新的本地文件？"
#DEFINE	MSG_REMOTEUPDATE_LOC	"是否希望更新位于远程位置的该数据项？"
#DEFINE MSG_NOCLIREG32_LOC 	"无法在 FoxPro 文件夹中定位 CLIREG32.EXE。请确认已正确安装。"
#DEFINE	ITEMPICKER_CLASS	"itempicker"
#DEFINE	DATAPICKER_CLASS	"datapicker"
#DEFINE	PROJPICKER_CLASS	"projectpicker"
#DEFINE	VFPGLRY_VCX			"gallery\vfpglry.vcx"
#DEFINE	MSG_NOCLASSREG_LOC	"没有正确注册组件。请重新在“系统”菜单选项中选择安装。"
#DEFINE	MSG_NOREG_LOC		"** 没有注册 **"
#DEFINE	MSG_ONECLASSREG_LOC	"对于此组件仅注册一个类: "

#DEFINE	ERRCODE_GOODINSTALL	0
#DEFINE	ERRCODE_CLASSEXISTS	1
#DEFINE	ERRCODE_FAILINSTALL	2
	
*_CLASSITEM
#DEFINE MSG_NOSAMPLE_LOC	"样例无效。"
#DEFINE STAT_LOADCLASS_LOC	"正在加载“类浏览器”..."
#DEFINE	VFP_SCREEN			"SCREEN"
#DEFINE	DEFCLASS			"DEFINE CLASS "
#DEFINE FORMNAMEVAR_LOC		"已创建的表单公共变量名为: "
#DEFINE NOHELP_LOC			"没有找到可用的帮助。"
#DEFINE ERR_OBJNOTCREATED_LOC	"没有创建此类 -- 可能是因为 INIT 事件返回值为 .F.。"

#DEFINE VFPHELPFILE		"FOXHELP.CHM"
#DEFINE MSDNHELPFILE	"MSDNVS98.COL"

*FILEITEM
#DEFINE SHELLPRINTTO	"printto"
#DEFINE SHELLDEFAULT	"open"
#DEFINE SHELLNEW		"new"
#DEFINE SHELLSHOW		"show"
#DEFINE SHELLPRINT		"print"
#DEFINE QVIEWPATH 		"QuickView\."
#DEFINE QVIEWEXEPATH	"QuickView\Shell\Open\Command"
#DEFINE BINARYTYPE		"*Binary*"			&& Binary data in any form.

*SHAREDITEM
#DEFINE MSG_NOFORM_LOC 		"无打开的表单..."
#DEFINE MSG_NOPROJECT_LOC 	"无打开的项目..."
#DEFINE MSG_FILEADDED_LOC 	"文件已成功地添加至项目中。"
#DEFINE MSG_FILEINPJX_LOC 	"文件已在项目中。"
#DEFINE MSG_LOCATE_LOC 		"定位:"
#DEFINE ERR_NOGLRYDLOG_LOC 	"组件库中的一个组件正在使用。不能执行操作"
#DEFINE C_SELECTFORM_LOC	"选择表单(&F)"

*TEMPLATEITEM
#DEFINE DEFWIZCLASSLIB 	"WIZBTNS.VCX"

*File Version Strings
#DEFINE FILEVER_COMMENT_LOC 		"备注: "
#DEFINE FILEVER_COMPANY_LOC 		"单位: "
#DEFINE FILEVER_FILEDESC_LOC 		"文件说明: "
#DEFINE FILEVER_FILEVER_LOC 		"文件版本: "
#DEFINE FILEVER_INTERNAL_LOC		"内部名称: "
#DEFINE FILEVER_COPYRIGHT_LOC	 	"合法版权: "
#DEFINE FILEVER_TRADMARK_LOC		"合法商标: "
#DEFINE FILEVER_FILENAME_LOC	 	"初始文件名: "
#DEFINE FILEVER_PRIVATE_LOC 		"私有连编: "
#DEFINE FILEVER_PRODUCTNAME_LOC		"产品名称: "
#DEFINE FILEVER_PRODUCTVER_LOC	 	"产品版本: "
#DEFINE FILEVER_SPECIAL_LOC			"特定连编: "
#DEFINE FILEVER_LANGUAGE_LOC		"语言: "
#DEFINE FILEVER_NOVERSION_LOC		"未找到版本信息。"
#DEFINE MSG_FILEVERSION_LOC			"版本信息: "

**Item Type Icons**
#DEFINE ICONFOLDER		"graphics\"
#DEFINE ICO_ACTXEXE		"actxexe.ico"
#DEFINE ICO_ACTXDLL		"actxdll.ico"
#DEFINE ICO_ACTXOCX		"actxocx.ico"
#DEFINE ICO_APPSTYLE	"appstyle.ico"
#DEFINE ICO_AUDIO		"audio.ico"
#DEFINE ICO_CATALOG		"catalog.ico"
#DEFINE ICO_CLASS		"class.ico"
#DEFINE ICO_CLASSLIB	"classlib.ico"
#DEFINE ICO_FILE		"file.ico"
#DEFINE ICO_FORM		"form.ico"
#DEFINE ICO_FRMSTYLE	"frmstyle.ico"
#DEFINE ICO_GIF			"gif.ico"
#DEFINE ICO_HELP		"help.ico"
#DEFINE ICO_JPEG		"jpeg.ico"
#DEFINE ICO_LABEL		"label.ico"
#DEFINE ICO_MENU		"menu.ico"
#DEFINE ICO_MSEXCEL		"excel.ico"
#DEFINE ICO_MSWORD		"word.ico"
#DEFINE ICO_MSOUTLOOK	"outlook.ico"
#DEFINE ICO_MSPOWERPNT	"powerpoint.ico"
#DEFINE ICO_MUSIC		"music.ico"
#DEFINE ICO_PICTURE		"picture.ico"
#DEFINE ICO_PROGRAM		"program.ico"
#DEFINE ICO_PROJECT		"project.ico"
#DEFINE ICO_REPORT		"report.ico"
#DEFINE ICO_RPTSTYLE	"rptstyle.ico"
#DEFINE ICO_TABLE		"table.ico"
#DEFINE ICO_TEXT		"text.ico"
#DEFINE ICO_VIEW		"view.ico"
#DEFINE ICO_WEBDOC		"webdoc.ico"
#DEFINE ICO_WEBFILE		"webfile.ico"
#DEFINE ICO_WEBSITE		"website.ico"

* Operating System codes
#DEFINE	OS_W32S				1
#DEFINE	OS_NT				2
#DEFINE	OS_WIN95			3
#DEFINE	OS_MAC				4
#DEFINE	OS_DOS				5
#DEFINE	OS_UNIX				6

* DLL Paths for various operating systems
#DEFINE DLLPATH_NT			"\SYSTEM32\"
#DEFINE DLLPATH_WIN95		"\SYSTEM\"

* DLL files used to read INI files
#DEFINE	DLL_KERNEL_NT		"KERNEL32.DLL"
#DEFINE	DLL_KERNEL_WIN95	"KERNEL32.DLL"

* DLL files used to read registry
#DEFINE	DLL_ADVAPI_NT		"ADVAPI32.DLL"
#DEFINE	DLL_ADVAPI_WIN95	"ADVAPI32.DLL"

* DLL files used to read ODBC info
#DEFINE DLL_ODBC_NT			"ODBC32.DLL"
#DEFINE DLL_ODBC_WIN95		"ODBC32.DLL"

* Registry roots
#DEFINE HKEY_CLASSES_ROOT           -2147483648  && BITSET(0,31)
#DEFINE HKEY_CURRENT_USER           -2147483647  && BITSET(0,31)+1
#DEFINE HKEY_LOCAL_MACHINE          -2147483646  && BITSET(0,31)+2
#DEFINE HKEY_USERS                  -2147483645  && BITSET(0,31)+3

* Misc
#DEFINE APP_PATH_KEY		"\Shell\Open\Command"
#DEFINE OLE_PATH_KEY		"\Protocol\StdFileEditing\Server"
#DEFINE VFP_OPTIONS_KEY1	"Software\Microsoft\VisualFoxPro\"
#DEFINE VFP_OPTIONS_KEY2	"\Options"
#DEFINE CURVER_KEY			"\CurVer"

* Error Codes
#DEFINE ERROR_SUCCESS		0	&& OK
#DEFINE ERROR_EOF 			259 && no more entries in key

* Note these next error codes are specific to this Class, not DLL
#DEFINE ERROR_NOAPIFILE		-101	&& DLL file to check registry not found
#DEFINE ERROR_KEYNOREG		-102	&& key not registered
#DEFINE ERROR_BADPARM		-103	&& bad parameter passed
#DEFINE ERROR_NOENTRY		-104	&& entry not found
#DEFINE	ERROR_BADKEY		-105	&& bad key passed
#DEFINE	ERROR_NONSTR_DATA	-106	&& data type for value is not a data string
#DEFINE ERROR_BADPLAT		-107	&& platform not supported
#DEFINE ERROR_NOPLAT		-111	&& call not supported on this platform


* Data types for keys
#DEFINE REG_SZ 				1	&& Data string
#DEFINE REG_EXPAND_SZ 		2	&& Unicode string
#DEFINE REG_BINARY 			3	&& Binary data in any form.
#DEFINE REG_DWORD 			4	&& A 32-bit number.

* Data types labels
#DEFINE REG_BINARY_LOC		"*Binary*"			&& Binary data in any form.
#DEFINE REG_DWORD_LOC 		"*Dword*"			&& A 32-bit number.
#DEFINE REG_UNKNOWN_LOC		"*Unknown type*"	&& unknown type

#DEFINE APPHOOK_FILE	"APPHOOK.VCX"
#DEFINE APPHOOK_CLASS	"APPHOOK"
