⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file_handlescrollview.cpp

📁 匿名通信代码
💻 CPP
字号:
// File_handleScrollView.cpp : implementation file
//

#include "stdafx.h"
#include "file_handle.h"
#include "File_handleScrollView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFile_handleScrollView

IMPLEMENT_DYNCREATE(CFile_handleScrollView, CScrollView)

CFile_handleScrollView::CFile_handleScrollView()
{
}

CFile_handleScrollView::~CFile_handleScrollView()
{
}


BEGIN_MESSAGE_MAP(CFile_handleScrollView, CScrollView)
	//{{AFX_MSG_MAP(CFile_handleScrollView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFile_handleScrollView drawing

void CFile_handleScrollView::OnInitialUpdate()
{
	CScrollView::OnInitialUpdate();

	CSize sizeTotal;
	// TODO: calculate the total size of this view
	sizeTotal.cx = 640;
	sizeTotal.cy = 480;
	SetScrollSizes(MM_TEXT, sizeTotal);
}

void CFile_handleScrollView::OnDraw(CDC* pDC)
{
	CDocument* pDoc = GetDocument();
	// TODO: add draw code here
	ASSERT_VALID(pDoc);

	//char str[64];

	pDC->TextOut(100,0,"CODE");
}

/////////////////////////////////////////////////////////////////////////////
// CFile_handleScrollView diagnostics

#ifdef _DEBUG
void CFile_handleScrollView::AssertValid() const
{
	CScrollView::AssertValid();
}

inline CFile_handleDoc* CFile_handleScrollView::GetDocument()

{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFile_handleDoc)));
	return (CFile_handleDoc*)m_pDocument;
}

void CFile_handleScrollView::Dump(CDumpContext& dc) const
{
	CScrollView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CFile_handleScrollView message handlers

void CFile_handleScrollView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	// TODO: Add your specialized code here and/or call the base class

	Invalidate(true);
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -