📄 zhekoudan.cpp
字号:
// ZheKouDan.cpp : implementation file
// 设置单品折扣类
#include "stdafx.h"
#include "PosClient.h"
#include "ZheKouDan.h"
extern float zhekou;
extern float allzhekou;
extern float allmoney;
extern int count;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CZheKouDan dialog
CZheKouDan::CZheKouDan(CWnd* pParent /*=NULL*/)
: CDialog(CZheKouDan::IDD, pParent)
{
//{{AFX_DATA_INIT(CZheKouDan)
m_zhekou = 1.0f;
//}}AFX_DATA_INIT
}
void CZheKouDan::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CZheKouDan)
DDX_Control(pDX, IDC_EDIT1, m_zk);
DDX_Text(pDX, IDC_EDIT1, m_zhekou);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CZheKouDan, CDialog)
//{{AFX_MSG_MAP(CZheKouDan)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CZheKouDan message handlers
void CZheKouDan::OnOK()
{
UpdateData(true);
zhekou=m_zhekou;
UpdateData(false);
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -