1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include "stdafx.h"
- #include "dbserver.h"
- #include "SelYear.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- SelYear::SelYear(CWnd* pParent )
- : CDialog(SelYear::IDD, pParent)
- {
-
- m_year = 0;
-
- }
- void SelYear::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Text(pDX, IDC_EDIT1, m_year);
-
- }
- BEGIN_MESSAGE_MAP(SelYear, CDialog)
-
-
- END_MESSAGE_MAP()
- void SelYear::OnOK()
- {
-
- UpdateData();
- if(m_year<2000 || m_year>9999)
- {
- MessageBox("ÊäÈëÓÐÎó");return;
- }
- CDialog::OnOK();
- }
|