insertdlg.cpp

来自「ppWizard has created this ShopingList ap」· C++ 代码 · 共 54 行

CPP
54
字号
// InsertDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ShopingList.h"
#include "InsertDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInsertDlg dialog


CInsertDlg::CInsertDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CInsertDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInsertDlg)
	m_sPdtName = _T("");
	m_nQty = 0;
	m_fStore1 = 0.0f;
	m_fStore2 = 0.0f;
	m_fStore3 = 0.0f;
	m_fStore4 = 0.0f;
	//}}AFX_DATA_INIT
}


void CInsertDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInsertDlg)
	DDX_Text(pDX, IDC_PDT_NAME_EDIT, m_sPdtName);
	DDX_Text(pDX, IDC_QTY_EDIT, m_nQty);
	DDX_Text(pDX, IDC_STORE1_EDIT, m_fStore1);
	DDX_Text(pDX, IDC_STORE2_EDIT, m_fStore2);
	DDX_Text(pDX, IDC_STORE3_EDIT, m_fStore3);
	DDX_Text(pDX, IDC_STORE4_EDIT, m_fStore4);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInsertDlg, CDialog)
	//{{AFX_MSG_MAP(CInsertDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInsertDlg message handlers

⌨️ 快捷键说明

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