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

📄 typeview.cpp

📁 根据客户提供的轮胎规格,单价,完成天数计算价格,并形成记录,可根据记录自行选择轮胎种类计算某几种轮胎再一定时间内完成需要价格.共有记录添加,记录修改,计算价格三个部分
💻 CPP
字号:
// typeView.cpp : implementation of the CTypeView class
//

#include "stdafx.h"
#include "type.h"
#include "adddlg.h"
#include "typeDoc.h"
#include "typeView.h"
#include "accept.h"
#include "action.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTypeView

IMPLEMENT_DYNCREATE(CTypeView, CView)

BEGIN_MESSAGE_MAP(CTypeView, CView)
	//{{AFX_MSG_MAP(CTypeView)
	ON_COMMAND(ID_OP_ADD, OnOpAdd)
	ON_COMMAND(ID_OP_OPERATE, OnOpOperate)
	ON_COMMAND(ID_OP_ACTION, OnOpAction)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTypeView construction/destruction

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

}

CTypeView::~CTypeView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CTypeView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CTypeView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTypeView message handlers

void CTypeView::OnOpAdd() 
{
	// TODO: Add your command handler code here
	adddlg adlg;
	int ret=adlg.DoModal();
}

void CTypeView::OnOpOperate() 
{
	// TODO: Add your command handler code here
	accept tdlg;
	int ret=tdlg.DoModal();
}

void CTypeView::OnOpAction() 
{
	// TODO: Add your command handler code here
	action tdlg;
	int ret=tdlg.DoModal();	
}

⌨️ 快捷键说明

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