-
Notifications
You must be signed in to change notification settings - Fork 0
/
TWInfo.cpp
61 lines (46 loc) · 1007 Bytes
/
TWInfo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "stdafx.h"
#include "TW.h"
#include "TWInfo.h"
#include "TWDlg.h"
#include <time.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
TWInfo::TWInfo(CWnd* pParent )
: CDialog(TWInfo::IDD, pParent)
{
//{{AFX_DATA_INIT(TWInfo)
m_date = __DATE__;
m_time = __TIME__;
//}}AFX_DATA_INIT
}
void TWInfo::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(TWInfo)
DDX_Text(pDX, IDC_DATE, m_date);
DDX_Text(pDX, IDC_TIME, m_time);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(TWInfo, CDialog)
//{{AFX_MSG_MAP(TWInfo)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL TWInfo::OnInitDialog()
{
CDialog::OnInitDialog();
SetTimer(1,1500,0);
return 1;
}
void TWInfo::OnTimer(UINT nIDEvent)
{
CTWDlg ooo;
// ooo
int vvv= ooo.Info_sw();
// vvv
if( vvv<1) CDialog::OnCancel();
CDialog::OnTimer(nIDEvent);
}