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

📄 mfcexp13_3testview.cpp

📁 mfc windows程序设计教材 非常好的 从api 到模拟 c++ 类的 再到mfc
💻 CPP
字号:
// MFCexp13_3testView.cpp : implementation of the CMFCexp13_3testView class
//

#include "stdafx.h"
#include "MFCexp13_3test.h"

#include "MFCexp13_3testDoc.h"
#include "MFCexp13_3testView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMFCexp13_3testView

IMPLEMENT_DYNCREATE(CMFCexp13_3testView, CView)

BEGIN_MESSAGE_MAP(CMFCexp13_3testView, CView)
	//{{AFX_MSG_MAP(CMFCexp13_3testView)
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMFCexp13_3testView construction/destruction

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

}

CMFCexp13_3testView::~CMFCexp13_3testView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMFCexp13_3testView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CMFCexp13_3testView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMFCexp13_3testView message handlers

void CMFCexp13_3testView::OnLButtonDown(UINT nFlags, CPoint point) 
{
	ShowMsg();	
	CView::OnLButtonDown(nFlags, point);
}

⌨️ 快捷键说明

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