📄 svmclsview.cpp
字号:
// svmclsView.cpp : implementation of the CSvmclsView class
//
#include "stdafx.h"
#include "svmcls.h"
#include "svmclsDoc.h"
#include "svmclsView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView
IMPLEMENT_DYNCREATE(CSvmclsView, CEditView)
BEGIN_MESSAGE_MAP(CSvmclsView, CEditView)
//{{AFX_MSG_MAP(CSvmclsView)
// 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
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView construction/destruction
CSvmclsView::CSvmclsView()
{
// TODO: add construction code here
}
CSvmclsView::~CSvmclsView()
{
}
BOOL CSvmclsView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CEditView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView drawing
void CSvmclsView::OnDraw(CDC* pDC)
{
CSvmclsDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
void CSvmclsView::OnInitialUpdate()
{
CEditView::OnInitialUpdate();
// TODO: You may populate your ListView with items by directly accessing
// its list control through a call to GetListCtrl().
}
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView printing
BOOL CSvmclsView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CSvmclsView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CSvmclsView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView diagnostics
#ifdef _DEBUG
void CSvmclsView::AssertValid() const
{
CEditView::AssertValid();
}
void CSvmclsView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CSvmclsDoc* CSvmclsView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSvmclsDoc)));
return (CSvmclsDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSvmclsView message handlers
void CSvmclsView::OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct)
{
//TODO: add code to react to the user changing the view style of your window
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -