📄 rsetview.cpp
字号:
// RSetView.cpp : implementation of the CRSetView class
//
#include "stdafx.h"
#include "RSet.h"
#include "RSetDoc.h"
#include "RSetView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRSetView
IMPLEMENT_DYNCREATE(CRSetView, CEditView)
BEGIN_MESSAGE_MAP(CRSetView, CEditView)
//{{AFX_MSG_MAP(CRSetView)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CRSetView construction/destruction
CRSetView::CRSetView()
{
// TODO: add construction code here
}
CRSetView::~CRSetView()
{
}
//DEL BOOL CRSetView::PreCreateWindow(CREATESTRUCT& cs)
//DEL {
//DEL // TODO: Modify the Window class or styles here by modifying
//DEL // the CREATESTRUCT cs
//DEL
//DEL BOOL bPreCreated = CEditView::PreCreateWindow(cs);
//DEL cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
//DEL
//DEL return bPreCreated;
//DEL }
/////////////////////////////////////////////////////////////////////////////
// CRSetView drawing
/////////////////////////////////////////////////////////////////////////////
// CRSetView printing
BOOL CRSetView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void CRSetView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void CRSetView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// CRSetView diagnostics
#ifdef _DEBUG
void CRSetView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CRSetDoc* CRSetView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRSetDoc)));
return (CRSetDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CRSetView message handlers
void CRSetView::OnInitialUpdate()
{
// CEditView::OnInitialUpdate();
GetEditCtrl().SetReadOnly();
CString strTemp;
CRSetDoc* pDoc=GetDocument();
CEdit& theEdit=GetEditCtrl();
theEdit.FmtLines(true);
theEdit.ReplaceSel("\r\n");
strTemp="载入的数据集整体信息如下:\r\n";
theEdit.ReplaceSel(strTemp);
strTemp.Format("Style: %s\r\n",pDoc->GetStyle());
theEdit.ReplaceSel(strTemp);
strTemp.Format("Stage: %d\r\n",pDoc->GetStage());
theEdit.ReplaceSel(strTemp);
strTemp.Format("Condition Attributes Number: %d\r\n",pDoc->GetAttrNum());
theEdit.ReplaceSel(strTemp);
strTemp.Format("%s:%d\r\n",pDoc->GetStrBeforeRecordNum(),pDoc->GetRecordNum());
//strTemp.Format("Records Number: %d\r\n",pDoc->GetRecordNum());
theEdit.ReplaceSel(strTemp);
if(pDoc->HasBlock())
{
strTemp.Format("Blocks Number: %d\r\n",pDoc->GetBlockNum());
theEdit.ReplaceSel(strTemp);
}
/*
strTemp.Format("浮点数类型属性个数:%d\r\n",pDoc->GetFloatAttNum());
theEdit.ReplaceSel(strTemp);
strTemp.Format("整形类型属性个数:%d\r\n",pDoc->GetIntAttNum());
theEdit.ReplaceSel(strTemp);
strTemp.Format("字符串类型属性个数:%d\r\n",pDoc->GetStringAttNum());
theEdit.ReplaceSel(strTemp);
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -