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

📄 toolbarexamview.cpp

📁 编程 工具栏的制作 可供初学者参考使用
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -