sourcecode.cpp

来自「bmp_to_c.rar」· C++ 代码 · 共 85 行

CPP
85 行
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?