📄 acsdoc.cpp
字号:
// acsDoc.cpp : implementation of the CAcsDoc class
//
#include "stdafx.h"
#include "acs.h"
#include "acsDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAcsDoc
IMPLEMENT_DYNCREATE(CAcsDoc, CDocument)
BEGIN_MESSAGE_MAP(CAcsDoc, CDocument)
//{{AFX_MSG_MAP(CAcsDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAcsDoc construction/destruction
CAcsDoc::CAcsDoc()
{
// TODO: add one-time construction code here
//初始化参数信息
m_BValue = 2.0f;
m_Q0Value = 0.9f;
m_AValue = 0.1f;
m_PValue = 0.1f;
m_T0Value = 1.0f;
m_AntNumber = 10;
}
CAcsDoc::~CAcsDoc()
{
}
BOOL CAcsDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CAcsDoc serialization
void CAcsDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CAcsDoc diagnostics
#ifdef _DEBUG
void CAcsDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CAcsDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CAcsDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -