modctrl.cpp

来自「酒店用的嵌入式无线点餐系统」· C++ 代码 · 共 66 行

CPP
66
字号
// ModCtrl.cpp : implementation file
//

#include "stdafx.h"
#include "OrderDishsSys.h"
#include "ModCtrl.h"
//
#include"afxtempl.h"
#include"Dish.h"
//
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CModCtrl dialog
//
extern CList<Dish,Dish&> MList;
extern Dish d;

CModCtrl::CModCtrl(CWnd* pParent /*=NULL*/)
	: CDialog(CModCtrl::IDD, pParent)
{
	//{{AFX_DATA_INIT(CModCtrl)
	m_modname = _T("");
	m_modprice = 0;
	m_modshu = 0;
	//}}AFX_DATA_INIT
}


void CModCtrl::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CModCtrl)
	DDX_Text(pDX, IDC_MODNAME, m_modname);
	DDX_Text(pDX, IDC_MODPRICE, m_modprice);
	DDX_Text(pDX, IDC_MODSHU, m_modshu);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CModCtrl, CDialog)
	//{{AFX_MSG_MAP(CModCtrl)
	ON_BN_CLICKED(IDC_MODOK, OnModok)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CModCtrl message handlers

//
#include "OpCtrl.h"
void CModCtrl::OnModok() 
{
	// TODO: Add your control notification handler code here
	UpdateData();
	COpCtrl ctrl;
	ctrl.modctrl(MList,d,pt,m_modname,m_modprice,m_modshu);

	CDialog::OnCancel();
	
}

⌨️ 快捷键说明

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