📄 scmisview.cpp
字号:
// SCMISView.cpp : implementation of the CSCMISView class
//
#include "stdafx.h"
#include "SCMIS.h"
#include "SCMISDoc.h"
#include "SCMISView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSCMISView
IMPLEMENT_DYNCREATE(CSCMISView, CView)
BEGIN_MESSAGE_MAP(CSCMISView, CView)
//{{AFX_MSG_MAP(CSCMISView)
ON_WM_PAINT()
//}}AFX_MSG_MAP
// Standard printing commands
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()
/////////////////////////////////////////////////////////////////////////////
// CSCMISView construction/destruction
CSCMISView::CSCMISView()
{
// TODO: add construction code here
}
CSCMISView::~CSCMISView()
{
}
BOOL CSCMISView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CSCMISView drawing
void CSCMISView::OnDraw(CDC* pDC)
{
CSCMISDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CSCMISView printing
BOOL CSCMISView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CSCMISView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CSCMISView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CSCMISView diagnostics
#ifdef _DEBUG
void CSCMISView::AssertValid() const
{
CView::AssertValid();
}
void CSCMISView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CSCMISDoc* CSCMISView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSCMISDoc)));
return (CSCMISDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSCMISView message handlers
void CSCMISView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
/*CBitmap bmp;
bmp.LoadBitmap(IDB_BITMAP1);
CBrush br(&bmp);
CRect rect;
GetClientRect(&rect);
dc.FillRect(rect,&br);
*/
// Do not call CView::OnPaint() for painting messages
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -