📄 transclientview.cpp
字号:
// TransClientView.cpp : implementation of the CTransClientView class
//
#include "stdafx.h"
#include "TransClient.h"
#include "TransClientDoc.h"
#include "TransClientView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTransClientView
IMPLEMENT_DYNCREATE(CTransClientView, CEditView)
BEGIN_MESSAGE_MAP(CTransClientView, CEditView)
//{{AFX_MSG_MAP(CTransClientView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CTransClientView construction/destruction
CTransClientView::CTransClientView()
{
// TODO: add construction code here
}
CTransClientView::~CTransClientView()
{
}
BOOL CTransClientView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
BOOL bPreCreated = CEditView::PreCreateWindow(cs);
cs.style = AFX_WS_DEFAULT_VIEW | WS_VSCROLL | ES_AUTOHSCROLL |
ES_AUTOVSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_READONLY;
return bPreCreated;
}
/////////////////////////////////////////////////////////////////////////////
// CTransClientView drawing
void CTransClientView::OnDraw(CDC* pDC)
{
CTransClientDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CTransClientView printing
BOOL CTransClientView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void CTransClientView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void CTransClientView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// CTransClientView diagnostics
#ifdef _DEBUG
void CTransClientView::AssertValid() const
{
CEditView::AssertValid();
}
void CTransClientView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CTransClientDoc* CTransClientView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTransClientDoc)));
return (CTransClientDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTransClientView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -