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

📄 ex11bvw.cpp

📁 visual c++技术内幕范例的源代码
💻 CPP
字号:
// ex11bvw.cpp : implementation of the CEx11bView class
//

#include "stdafx.h"
#include "ex11b.h"

#include "ex11bdoc.h"
#include "ex11bvw.h"
#include "ex11bdlg.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CEx11bView

IMPLEMENT_DYNCREATE(CEx11bView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CEx11bView construction/destruction

CEx11bView::CEx11bView()
{

}

CEx11bView::~CEx11bView()
{
}

/////////////////////////////////////////////////////////////////////////////
// CEx11bView drawing

void CEx11bView::OnDraw(CDC* pDC)
{
    pDC->TextOut(0, 0, "Press the left mouse button here.");
}



/////////////////////////////////////////////////////////////////////////////
// CEx11bView diagnostics

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

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

CEx11bDoc* CEx11bView::GetDocument() // non-debug version is inline
{
    ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEx11bDoc)));
    return (CEx11bDoc*) m_pDocument;
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEx11bView message handlers

void CEx11bView::OnLButtonDown(UINT nFlags, CPoint point)
{
    CEx11bDialog dlg;
    dlg.DoModal();
}

⌨️ 快捷键说明

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