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

📄 filemodinotifyview.cpp

📁 Visual.C++程序设计技巧与实例--配套光盘 第6章 文件和系统操作 本章共11个实例: 1. FolderCopy文件夹的选择和拷贝 2. DeleteCertainFile删除指定路
💻 CPP
字号:
// FileModiNotifyView.cpp : implementation of the CFileModiNotifyView class
//

#include "stdafx.h"
#include "FileModiNotify.h"

#include "FileModiNotifyDoc.h"
#include "FileModiNotifyView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView

IMPLEMENT_DYNCREATE(CFileModiNotifyView, CView)

BEGIN_MESSAGE_MAP(CFileModiNotifyView, CView)
	//{{AFX_MSG_MAP(CFileModiNotifyView)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView construction/destruction

CFileModiNotifyView::CFileModiNotifyView()
{
	// TODO: add construction code here

}

CFileModiNotifyView::~CFileModiNotifyView()
{
}

BOOL CFileModiNotifyView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView drawing

void CFileModiNotifyView::OnDraw(CDC* pDC)
{
	CFileModiNotifyDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView printing

BOOL CFileModiNotifyView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CFileModiNotifyView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CFileModiNotifyView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView diagnostics

#ifdef _DEBUG
void CFileModiNotifyView::AssertValid() const
{
	CView::AssertValid();
}

void CFileModiNotifyView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CFileModiNotifyDoc* CFileModiNotifyView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFileModiNotifyDoc)));
	return (CFileModiNotifyDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CFileModiNotifyView message handlers

void CFileModiNotifyView::OnLButtonDown(UINT nFlags, CPoint point) 
{
	CFileModiNotifyDoc * pDoc;
	pDoc=GetDocument();
	pDoc->SetModifiedFlag(TRUE);
	CView::OnLButtonDown(nFlags, point);
}

⌨️ 快捷键说明

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