?? gastypeinfodlg.cpp
字號(hào):
// GasTypeInfoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "gasstation.h"
#include "GasTypeInfoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGasTypeInfoDlg dialog
CGasTypeInfoDlg::CGasTypeInfoDlg(CWnd* pParent /*=NULL*/)
: CDialog(CGasTypeInfoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGasTypeInfoDlg)
m_strName = _T("");
m_nNumber = 0;
m_fPrice = 0.0f;
//}}AFX_DATA_INIT
}
void CGasTypeInfoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGasTypeInfoDlg)
DDX_Text(pDX, IDC_EDIT_NAME, m_strName);
DDX_Text(pDX, IDC_EDIT_NUMBER, m_nNumber);
DDX_Text(pDX, IDC_EDIT_PRICE, m_fPrice);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGasTypeInfoDlg, CDialog)
//{{AFX_MSG_MAP(CGasTypeInfoDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGasTypeInfoDlg message handlers
void CGasTypeInfoDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData();
if (m_strName.IsEmpty() ||
m_fPrice <= 0 )
{
MB_ERROR("郵品信息錯(cuò)誤,請重新輸入!");
return ;
}
CDialog::OnOK();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -