You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
#include "stdafx.h"
|
|
#include "GeoSigmaDraw.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
//
|
|
//TODO: 如果此 DLL 相对于 MFC DLL 是动态链接的,
|
|
// 则从此 DLL 导出的任何调入
|
|
// MFC 的函数必须将 AFX_MANAGE_STATE 宏添加到
|
|
// 该函数的最前面。
|
|
//
|
|
// 例如:
|
|
//
|
|
// extern "C" BOOL PASCAL EXPORT ExportedFunction()
|
|
// {
|
|
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
|
|
// // 此处为普通函数体
|
|
// }
|
|
//
|
|
// 此宏先于任何 MFC 调用
|
|
// 出现在每个函数中十分重要。 这意味着
|
|
// 它必须作为以下项中的第一个语句:
|
|
// 出现,甚至先于所有对象变量声明,
|
|
// 这是因为它们的构造函数可能生成 MFC
|
|
// DLL 调用。
|
|
//
|
|
// 有关其他详细信息,
|
|
// 请参阅 MFC 技术说明 33 和 58。
|
|
//
|
|
|
|
// CGeoSigmaDrawApp
|
|
|
|
BEGIN_MESSAGE_MAP(CGeoSigmaDrawApp, CWinApp)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CGeoSigmaDrawApp 构造
|
|
|
|
CGeoSigmaDrawApp::CGeoSigmaDrawApp()
|
|
{
|
|
// TODO: 在此处添加构造代码,
|
|
// 将所有重要的初始化放置在 InitInstance 中
|
|
}
|
|
|
|
|
|
// 唯一的 CGeoSigmaDrawApp 对象
|
|
|
|
CGeoSigmaDrawApp theApp;
|
|
|
|
|
|
// CGeoSigmaDrawApp 初始化
|
|
|
|
BOOL CGeoSigmaDrawApp::InitInstance()
|
|
{
|
|
CWinApp::InitInstance();
|
|
// 设置线程的语言环境为简体中文
|
|
SetThreadLocale(MAKELCID(MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED), SORT_DEFAULT));
|
|
// 设置 UI 语言为简体中文
|
|
SetThreadUILanguage(MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED));
|
|
// 设置 C 标准库的本地化
|
|
setlocale(LC_ALL, "zh-CN");
|
|
return TRUE;
|
|
}
|