12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include "stdafx.h"
- #include "ylgl.h"
- #include "InputPrice.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- InputPrice::InputPrice(CWnd* pParent )
- : CDialog(InputPrice::IDD, pParent)
- {
-
- m_price = _T("");
-
- }
- void InputPrice::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Control(pDX, IDC_EDIT1, m_editnum);
- DDX_Text(pDX, IDC_EDIT1, m_price);
-
- }
- BEGIN_MESSAGE_MAP(InputPrice, CDialog)
-
-
- END_MESSAGE_MAP()
- void InputPrice::OnOK()
- {
-
- UpdateData();
- m_price.TrimLeft ();m_price.TrimRight ();
- if(m_price=="")return;
- CDialog::OnOK();
- }
|