📄 sjfxdoc.cpp
字号:
// SJFXDoc.cpp : implementation of the CSJFXDoc class
//
#include "stdafx.h"
#include "SJFX.h"
#include "SJFXDoc.h"
#include "jlsj.h"
#include "dksj.h"
#include "cjlr.h"
#include "jbfx.h"
#include "dycjb.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSJFXDoc
IMPLEMENT_DYNCREATE(CSJFXDoc, CDocument)
BEGIN_MESSAGE_MAP(CSJFXDoc, CDocument)
//{{AFX_MSG_MAP(CSJFXDoc)
ON_COMMAND(IDM_SJ_NEW, OnSjNew)
ON_COMMAND(IDM_SJ_OPEN, OnSjOpen)
ON_COMMAND(IDM_CJ_LR, OnCjLr)
ON_COMMAND(IDM_SJ_CLOSE, OnSjClose)
ON_COMMAND(IDM_FX_JB, OnFxJb)
ON_COMMAND(IDM_FX_CJB, OnFxCjb)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSJFXDoc construction/destruction
CSJFXDoc::CSJFXDoc()
{
// TODO: add one-time construction code here
}
CSJFXDoc::~CSJFXDoc()
{
}
BOOL CSJFXDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CSJFXDoc serialization
void CSJFXDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CSJFXDoc diagnostics
#ifdef _DEBUG
void CSJFXDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CSJFXDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSJFXDoc commands
void CSJFXDoc::OnSjNew()
{
// TODO: Add your command handler code here
CJlsj jlsj;
jlsj.DoModal();
}
void CSJFXDoc::OnSjOpen()
{
// TODO: Add your command handler code here
CDksj dksj;
dksj.DoModal();
}
void CSJFXDoc::OnCjLr()
{
// TODO: Add your command handler code here
CCjlr cjlr;
cjlr.DoModal();
}
void CSJFXDoc::OnSjClose()
{
// TODO: Add your command handler code here
AfxMessageBox("当前试卷已被关闭!");
}
void CSJFXDoc::OnFxJb()
{
// TODO: Add your command handler code here
CJbfx jbfx;
jbfx.DoModal();
}
void CSJFXDoc::OnFxCjb()
{
// TODO: Add your command handler code here
CDycjb dycjb;
dycjb.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -