📄 goodsmodifydlg.cpp
字号:
// GoodsModifyDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MoneyAnyWhere.h"
#include "GoodsModifyDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGoodsModifyDlg dialog
CGoodsModifyDlg::CGoodsModifyDlg(CWnd* pParent /*=NULL*/)
: CDialog(CGoodsModifyDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGoodsModifyDlg)
m_strGoodsMName = _T("");
m_strGoodsMNum = _T("");
m_strGoodsMPrice = _T("");
m_strGoodsMValue = _T("");
//}}AFX_DATA_INIT
}
void CGoodsModifyDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGoodsModifyDlg)
DDX_Text(pDX, IDC_EDIT_GOODSMNAME, m_strGoodsMName);
DDX_Text(pDX, IDC_EDIT_GOODSMNUM, m_strGoodsMNum);
DDX_Text(pDX, IDC_EDIT_GOODSMPRICE, m_strGoodsMPrice);
DDX_Text(pDX, IDC_EDIT_GOODSMVALUE, m_strGoodsMValue);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGoodsModifyDlg, CDialog)
//{{AFX_MSG_MAP(CGoodsModifyDlg)
ON_BN_CLICKED(IDC_BUTTON_MCANCEL, OnButtonMcancel)
ON_BN_CLICKED(IDC_BUTTON_MHELP, OnButtonMhelp)
ON_BN_CLICKED(IDC_BUTTON_MSUBMIT, OnButtonMsubmit)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGoodsModifyDlg message handlers
void CGoodsModifyDlg::OnButtonMcancel()
{
// TODO: Add your control notification handler code here
CDialog::OnCancel();
}
void CGoodsModifyDlg::OnButtonMhelp()
{
// TODO: Add your control notification handler code here
AfxMessageBox(L"帮助");
}
void CGoodsModifyDlg::OnButtonMsubmit()
{
// TODO: Add your control notification handler code here
UpdateData(true);
GetDlgItemText(IDC_MONTHCALENDAR_GOODSMDATE,m_strGoodsMDate);
CDialog::OnOK();
}
void CGoodsModifyDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CDialog::OnPaint() for painting messages
}
BOOL CGoodsModifyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -