change file name

This commit is contained in:
liuyihui 2022-03-19 21:04:48 +08:00
parent edd4c86ba4
commit 104edc4aa8
21 changed files with 105 additions and 105 deletions

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32228.430
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Multichannel Analyzer", "Multichannel Analyzer\Multichannel Analyzer.vcxproj", "{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Multichannel Analyzer", "MCA\MCA.vcxproj", "{F76A58F6-156A-4C3C-955D-ABDB16E1C498}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -13,19 +13,19 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Debug|x64.ActiveCfg = Debug|x64
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Debug|x64.Build.0 = Debug|x64
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Debug|x86.ActiveCfg = Debug|Win32
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Debug|x86.Build.0 = Debug|Win32
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Release|x64.ActiveCfg = Release|x64
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Release|x64.Build.0 = Release|x64
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Release|x86.ActiveCfg = Release|Win32
{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}.Release|x86.Build.0 = Release|Win32
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Debug|x64.ActiveCfg = Debug|x64
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Debug|x64.Build.0 = Debug|x64
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Debug|x86.ActiveCfg = Debug|Win32
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Debug|x86.Build.0 = Debug|Win32
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Release|x64.ActiveCfg = Release|x64
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Release|x64.Build.0 = Release|x64
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Release|x86.ActiveCfg = Release|Win32
{F76A58F6-156A-4C3C-955D-ABDB16E1C498}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4A5742E4-18AA-4E43-AB5F-E9D3F78BC307}
SolutionGuid = {61149A51-3E2D-4892-AD1C-676087352EE4}
EndGlobalSection
EndGlobal

View File

@ -6,10 +6,10 @@
#include "framework.h"
#include "afxwinappex.h"
#include "afxdialogex.h"
#include "Multichannel Analyzer.h"
#include "MCA.h"
#include "MainFrm.h"
#include "Multichannel AnalyzerDoc.h"
#include "MCADoc.h"
#include "MCAView.h"
#ifdef _DEBUG
@ -17,10 +17,10 @@
#endif
// CMultichannelAnalyzerApp
// CMCAApp
BEGIN_MESSAGE_MAP(CMultichannelAnalyzerApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, &CMultichannelAnalyzerApp::OnAppAbout)
BEGIN_MESSAGE_MAP(CMCAApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, &CMCAApp::OnAppAbout)
// 基于文件的标准文档命令
ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen)
@ -29,9 +29,9 @@ BEGIN_MESSAGE_MAP(CMultichannelAnalyzerApp, CWinApp)
END_MESSAGE_MAP()
// CMultichannelAnalyzerApp 构造
// CMCAApp 构造
CMultichannelAnalyzerApp::CMultichannelAnalyzerApp() noexcept
CMCAApp::CMCAApp() noexcept
{
// 支持重新启动管理器
@ -51,14 +51,14 @@ CMultichannelAnalyzerApp::CMultichannelAnalyzerApp() noexcept
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的 CMultichannelAnalyzerApp 对象
// 唯一的 CMCAApp 对象
CMultichannelAnalyzerApp theApp;
CMCAApp theApp;
// CMultichannelAnalyzerApp 初始化
// CMCAApp 初始化
BOOL CMultichannelAnalyzerApp::InitInstance()
BOOL CMCAApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
@ -103,9 +103,9 @@ BOOL CMultichannelAnalyzerApp::InitInstance()
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMultichannelAnalyzerDoc),
RUNTIME_CLASS(CMCADoc),
RUNTIME_CLASS(CMainFrame), // 主 SDI 框架窗口
RUNTIME_CLASS(MCAView));
RUNTIME_CLASS(CMCAView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);
@ -128,7 +128,7 @@ BOOL CMultichannelAnalyzerApp::InitInstance()
return TRUE;
}
int CMultichannelAnalyzerApp::ExitInstance()
int CMCAApp::ExitInstance()
{
//TODO: 处理可能已添加的附加资源
AfxOleTerm(FALSE);
@ -136,7 +136,7 @@ int CMultichannelAnalyzerApp::ExitInstance()
return CWinApp::ExitInstance();
}
// CMultichannelAnalyzerApp 消息处理程序
// CMCAApp 消息处理程序
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
@ -172,13 +172,13 @@ BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx)
END_MESSAGE_MAP()
// 用于运行对话框的应用程序命令
void CMultichannelAnalyzerApp::OnAppAbout()
void CMCAApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
// CMultichannelAnalyzerApp 消息处理程序
// CMCAApp 消息处理程序

View File

@ -10,14 +10,14 @@
#include "resource.h" // 主符号
// CMultichannelAnalyzerApp:
// CMCAApp:
// 有关此类的实现,请参阅 Multichannel Analyzer.cpp
//
class CMultichannelAnalyzerApp : public CWinApp
class CMCAApp : public CWinApp
{
public:
CMultichannelAnalyzerApp() noexcept;
CMCAApp() noexcept;
// 重写
@ -30,4 +30,4 @@ public:
DECLARE_MESSAGE_MAP()
};
extern CMultichannelAnalyzerApp theApp;
extern CMCAApp theApp;

View File

@ -20,7 +20,7 @@
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>17.0</VCProjectVersion>
<ProjectGuid>{5FBBA58E-0A8F-4B23-B1D5-1CCCEF35FE33}</ProjectGuid>
<ProjectGuid>{F76A58F6-156A-4C3C-955D-ABDB16E1C498}</ProjectGuid>
<Keyword>MFCProj</Keyword>
<RootNamespace>MultichannelAnalyzer</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
@ -185,18 +185,18 @@
<ItemGroup>
<ClInclude Include="framework.h" />
<ClInclude Include="MainFrm.h" />
<ClInclude Include="MCADoc.h" />
<ClInclude Include="MCAView.h" />
<ClInclude Include="Multichannel Analyzer.h" />
<ClInclude Include="Multichannel AnalyzerDoc.h" />
<ClInclude Include="MCA.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="Resource.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="MainFrm.cpp" />
<ClCompile Include="MCADoc.cpp" />
<ClCompile Include="MCAView.cpp" />
<ClCompile Include="Multichannel Analyzer.cpp" />
<ClCompile Include="Multichannel AnalyzerDoc.cpp" />
<ClCompile Include="MCA.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
@ -205,14 +205,14 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="MultichannelAnalyzer.rc" />
<ResourceCompile Include="MCA.rc" />
</ItemGroup>
<ItemGroup>
<None Include="res\MultichannelAnalyzer.rc2" />
<None Include="res\MCA.rc2" />
</ItemGroup>
<ItemGroup>
<Image Include="res\Multichannel Analyzer.ico" />
<Image Include="res\Multichannel AnalyzerDoc.ico" />
<Image Include="res\MCA.ico" />
<Image Include="res\MCADoc.ico" />
<Image Include="res\Toolbar.bmp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

View File

@ -15,7 +15,7 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Multichannel Analyzer.h">
<ClInclude Include="MCA.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="framework.h">
@ -27,7 +27,7 @@
<ClInclude Include="MainFrm.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="Multichannel AnalyzerDoc.h">
<ClInclude Include="MCADoc.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="MCAView.h">
@ -41,13 +41,13 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Multichannel Analyzer.cpp">
<ClCompile Include="MCA.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="MainFrm.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="Multichannel AnalyzerDoc.cpp">
<ClCompile Include="MCADoc.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="MCAView.cpp">
@ -58,20 +58,20 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="MultichannelAnalyzer.rc">
<ResourceCompile Include="MCA.rc">
<Filter>资源文件</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<None Include="res\MultichannelAnalyzer.rc2">
<None Include="res\MCA.rc2">
<Filter>资源文件</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Image Include="res\Multichannel AnalyzerDoc.ico">
<Image Include="res\MCADoc.ico">
<Filter>资源文件</Filter>
</Image>
<Image Include="res\Multichannel Analyzer.ico">
<Image Include="res\MCA.ico">
<Filter>资源文件</Filter>
</Image>
<Image Include="res\Toolbar.bmp">

View File

@ -1,5 +1,5 @@

// Multichannel AnalyzerDoc.cpp: CMultichannelAnalyzerDoc 类的实现
// MCADoc.cpp: CMCADoc 类的实现
//
#include "pch.h"
@ -7,10 +7,10 @@
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "Multichannel Analyzer.h"
#include "MCA.h"
#endif
#include "Multichannel AnalyzerDoc.h"
#include "MCADoc.h"
#include <propkey.h>
@ -18,27 +18,27 @@
#define new DEBUG_NEW
#endif
// CMultichannelAnalyzerDoc
// CMCADoc
IMPLEMENT_DYNCREATE(CMultichannelAnalyzerDoc, CDocument)
IMPLEMENT_DYNCREATE(CMCADoc, CDocument)
BEGIN_MESSAGE_MAP(CMultichannelAnalyzerDoc, CDocument)
BEGIN_MESSAGE_MAP(CMCADoc, CDocument)
END_MESSAGE_MAP()
// CMultichannelAnalyzerDoc 构造/析构
// CMCADoc 构造/析构
CMultichannelAnalyzerDoc::CMultichannelAnalyzerDoc() noexcept
CMCADoc::CMCADoc() noexcept
{
// TODO: 在此添加一次性构造代码
}
CMultichannelAnalyzerDoc::~CMultichannelAnalyzerDoc()
CMCADoc::~CMCADoc()
{
}
BOOL CMultichannelAnalyzerDoc::OnNewDocument()
BOOL CMCADoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
@ -52,9 +52,9 @@ BOOL CMultichannelAnalyzerDoc::OnNewDocument()
// CMultichannelAnalyzerDoc 序列化
// CMCADoc 序列化
void CMultichannelAnalyzerDoc::Serialize(CArchive& ar)
void CMCADoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
@ -69,7 +69,7 @@ void CMultichannelAnalyzerDoc::Serialize(CArchive& ar)
#ifdef SHARED_HANDLERS
// 缩略图的支持
void CMultichannelAnalyzerDoc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
void CMCADoc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
{
// 修改此代码以绘制文档数据
dc.FillSolidRect(lprcBounds, RGB(255, 255, 255));
@ -90,7 +90,7 @@ void CMultichannelAnalyzerDoc::OnDrawThumbnail(CDC& dc, LPRECT lprcBounds)
}
// 搜索处理程序的支持
void CMultichannelAnalyzerDoc::InitializeSearchContent()
void CMCADoc::InitializeSearchContent()
{
CString strSearchContent;
// 从文档数据设置搜索内容。
@ -100,7 +100,7 @@ void CMultichannelAnalyzerDoc::InitializeSearchContent()
SetSearchContent(strSearchContent);
}
void CMultichannelAnalyzerDoc::SetSearchContent(const CString& value)
void CMCADoc::SetSearchContent(const CString& value)
{
if (value.IsEmpty())
{
@ -120,19 +120,19 @@ void CMultichannelAnalyzerDoc::SetSearchContent(const CString& value)
#endif // SHARED_HANDLERS
// CMultichannelAnalyzerDoc 诊断
// CMCADoc 诊断
#ifdef _DEBUG
void CMultichannelAnalyzerDoc::AssertValid() const
void CMCADoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMultichannelAnalyzerDoc::Dump(CDumpContext& dc) const
void CMCADoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CMultichannelAnalyzerDoc 命令
// CMCADoc 命令

View File

@ -1,16 +1,16 @@

// Multichannel AnalyzerDoc.h: CMultichannelAnalyzerDoc 类的接口
// MCADoc.h: CMCADoc 类的接口
//
#pragma once
class CMultichannelAnalyzerDoc : public CDocument
class CMCADoc : public CDocument
{
protected: // 仅从序列化创建
CMultichannelAnalyzerDoc() noexcept;
DECLARE_DYNCREATE(CMultichannelAnalyzerDoc)
CMCADoc() noexcept;
DECLARE_DYNCREATE(CMCADoc)
// 特性
public:
@ -29,7 +29,7 @@ public:
// 实现
public:
virtual ~CMultichannelAnalyzerDoc();
virtual ~CMCADoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;

View File

@ -1,5 +1,5 @@

// MCAView.cpp: MCAView 类的实现
// MCAView.cpp: CMCAView 类的实现
//
#include "pch.h"
@ -7,10 +7,10 @@
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "Multichannel Analyzer.h"
#include "MCA.h"
#endif
#include "Multichannel AnalyzerDoc.h"
#include "MCADoc.h"
#include "MCAView.h"
#ifdef _DEBUG
@ -18,30 +18,30 @@
#endif
// MCAView
// CMCAView
IMPLEMENT_DYNCREATE(MCAView, CView)
IMPLEMENT_DYNCREATE(CMCAView, CView)
BEGIN_MESSAGE_MAP(MCAView, CView)
BEGIN_MESSAGE_MAP(CMCAView, CView)
// 标准打印命令
ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CView::OnFilePrintPreview)
END_MESSAGE_MAP()
// MCAView 构造/析构
// CMCAView 构造/析构
MCAView::MCAView() noexcept
CMCAView::CMCAView() noexcept
{
// TODO: 在此处添加构造代码
}
MCAView::~MCAView()
CMCAView::~CMCAView()
{
}
BOOL MCAView::PreCreateWindow(CREATESTRUCT& cs)
BOOL CMCAView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改
// CREATESTRUCT cs 来修改窗口类或样式
@ -49,11 +49,11 @@ BOOL MCAView::PreCreateWindow(CREATESTRUCT& cs)
return CView::PreCreateWindow(cs);
}
// MCAView 绘图
// CMCAView 绘图
void MCAView::OnDraw(CDC* /*pDC*/)
void CMCAView::OnDraw(CDC* /*pDC*/)
{
CMultichannelAnalyzerDoc* pDoc = GetDocument();
CMCADoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
@ -62,44 +62,44 @@ void MCAView::OnDraw(CDC* /*pDC*/)
}
// MCAView 打印
// CMCAView 打印
BOOL MCAView::OnPreparePrinting(CPrintInfo* pInfo)
BOOL CMCAView::OnPreparePrinting(CPrintInfo* pInfo)
{
// 默认准备
return DoPreparePrinting(pInfo);
}
void MCAView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
void CMCAView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 添加额外的打印前进行的初始化过程
}
void MCAView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
void CMCAView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 添加打印后进行的清理过程
}
// MCAView 诊断
// CMCAView 诊断
#ifdef _DEBUG
void MCAView::AssertValid() const
void CMCAView::AssertValid() const
{
CView::AssertValid();
}
void MCAView::Dump(CDumpContext& dc) const
void CMCAView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMultichannelAnalyzerDoc* MCAView::GetDocument() const // 非调试版本是内联的
CMCADoc* CMCAView::GetDocument() const // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMultichannelAnalyzerDoc)));
return (CMultichannelAnalyzerDoc*)m_pDocument;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMCADoc)));
return (CMCADoc*)m_pDocument;
}
#endif //_DEBUG
// MCAView 消息处理程序
// CMCAView 消息处理程序

View File

@ -1,19 +1,19 @@

// MCAView.h: MCAView 类的接口
// MCAView.h: CMCAView 类的接口
//
#pragma once
class MCAView : public CView
class CMCAView : public CView
{
protected: // 仅从序列化创建
MCAView() noexcept;
DECLARE_DYNCREATE(MCAView)
CMCAView() noexcept;
DECLARE_DYNCREATE(CMCAView)
// 特性
public:
CMultichannelAnalyzerDoc* GetDocument() const;
CMCADoc* GetDocument() const;
// 操作
public:
@ -29,7 +29,7 @@ protected:
// 实现
public:
virtual ~MCAView();
virtual ~CMCAView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
@ -43,7 +43,7 @@ protected:
};
#ifndef _DEBUG // MCAView.cpp 中的调试版本
inline CMultichannelAnalyzerDoc* MCAView::GetDocument() const
{ return reinterpret_cast<CMultichannelAnalyzerDoc*>(m_pDocument); }
inline CMCADoc* CMCAView::GetDocument() const
{ return reinterpret_cast<CMCADoc*>(m_pDocument); }
#endif

View File

@ -4,7 +4,7 @@
#include "pch.h"
#include "framework.h"
#include "Multichannel Analyzer.h"
#include "MCA.h"
#include "MainFrm.h"

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB