toolbarexamview.cpp

来自「编程 工具栏的制作 可供初学者参考使用」· C++ 代码 · 共 86 行

CPP
86
字号
// ToolBarExamView.cpp : implementation of the CToolBarExamView class
//

#include "stdafx.h"
#include "ToolBarExam.h"

#include "ToolBarExamDoc.h"
#include "ToolBarExamView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CToolBarExamView

IMPLEMENT_DYNCREATE(CToolBarExamView, CView)

BEGIN_MESSAGE_MAP(CToolBarExamView, CView)
	//{{AFX_MSG_MAP(CToolBarExamView)
	ON_COMMAND(ID_RECORD, OnRecord)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CToolBarExamView construction/destruction

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

}

CToolBarExamView::~CToolBarExamView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CToolBarExamView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CToolBarExamView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CToolBarExamView message handlers

void CToolBarExamView::OnRecord() 
{
	AfxMessageBox("开始录制");	
}

⌨️ 快捷键说明

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