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

📄 ex11aview.cpp

📁 vc.net内幕系列源码
💻 CPP
字号:
// Ex11aView.cpp : implementation of the CEx11aView class
//

#include "stdafx.h"
#include "Ex11a.h"

#include "Ex11aDoc.h"
#include "Ex11aView.h"

#include "ComputeDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CEx11aView

IMPLEMENT_DYNCREATE(CEx11aView, CView)

BEGIN_MESSAGE_MAP(CEx11aView, CView)
	ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()

// CEx11aView construction/destruction

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

}

CEx11aView::~CEx11aView()
{
}

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

	return CView::PreCreateWindow(cs);
}

// CEx11aView drawing

void CEx11aView::OnDraw(CDC* pDC)
{
	CEx11aDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

    pDC->TextOut(0, 0, "Press the left mouse button here.");
}


// CEx11aView diagnostics

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

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

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


// CEx11aView message handlers

void CEx11aView::OnLButtonDown(UINT nFlags, CPoint point)
{
    CComputeDlg dlg;
    dlg.DoModal();

	CView::OnLButtonDown(nFlags, point);
}

⌨️ 快捷键说明

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