📄 rsaview.cpp
字号:
// RSAView.cpp : CRSAView 类的实现
//
#include "stdafx.h"
#include "RSA.h"
#include "RSADoc.h"
#include "RSAView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CRSAView
IMPLEMENT_DYNCREATE(CRSAView, CView)
BEGIN_MESSAGE_MAP(CRSAView, 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()
// CRSAView 构造/析构
CRSAView::CRSAView()
{
// TODO: 在此处添加构造代码
}
CRSAView::~CRSAView()
{
}
BOOL CRSAView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
// 样式
return CView::PreCreateWindow(cs);
}
// CRSAView 绘制
void CRSAView::OnDraw(CDC* /*pDC*/)
{
CRSADoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// TODO: 在此处为本机数据添加绘制代码
}
// CRSAView 打印
BOOL CRSAView::OnPreparePrinting(CPrintInfo* pInfo)
{
// 默认准备
return DoPreparePrinting(pInfo);
}
void CRSAView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 打印前添加额外的初始化
}
void CRSAView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 打印后添加清除过程
}
// CRSAView 诊断
#ifdef _DEBUG
void CRSAView::AssertValid() const
{
CView::AssertValid();
}
void CRSAView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CRSADoc* CRSAView::GetDocument() const // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRSADoc)));
return (CRSADoc*)m_pDocument;
}
#endif //_DEBUG
// CRSAView 消息处理程序
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -