📄 sourcecode.cpp
字号:
// SourceCode.cpp : implementation file
//
#include "stdafx.h"
#include "convertBMP.h"
#include "convertBMPDoc.h"
#include "SourceCode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// SourceCode
#define BYTELENGTH 8
IMPLEMENT_DYNCREATE(SourceCode, CScrollView)
SourceCode::SourceCode()
{
}
SourceCode::~SourceCode()
{
}
BEGIN_MESSAGE_MAP(SourceCode, CScrollView)
//{{AFX_MSG_MAP(SourceCode)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// SourceCode drawing
void SourceCode::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
CSize sizeTotal;
// TODO: calculate the total size of this view
sizeTotal.cx = sizeTotal.cy = 100;
SetScrollSizes(MM_TEXT, sizeTotal);
}
void SourceCode::OnDraw(CDC* pDC)
{
CConvertBMPDoc* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// SourceCode diagnostics
#ifdef _DEBUG
void SourceCode::AssertValid() const
{
CScrollView::AssertValid();
}
void SourceCode::Dump(CDumpContext& dc) const
{
CScrollView::Dump(dc);
}
CConvertBMPDoc* SourceCode::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CConvertBMPDoc)));
return (CConvertBMPDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// SourceCode message handlers
////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -