EndDlg.cpp
资源名称:福利彩票号码统计.rar [点击查看]
上传用户:dinghaosmt
上传日期:2013-03-22
资源大小:110k
文件大小:4k
源码类别:
射击游戏
开发平台:
Visual C++
- // EndDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "福利彩票号码统计.h"
- #include "EndDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CEndDlg dialog
- CEndDlg::CEndDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CEndDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CEndDlg)
- m_end0 = 0;
- m_end9 = 0;
- m_end1 = 0;
- m_end2 = 0;
- m_end3 = 0;
- m_end4 = 0;
- m_end5 = 0;
- m_end6 = 0;
- m_end7 = 0;
- m_end8 = 0;
- m_pend0 = _T("");
- m_pend9 = _T("");
- m_pend1 = _T("");
- m_pend2 = _T("");
- m_pend3 = _T("");
- m_pend4 = _T("");
- m_pend5 = _T("");
- m_pend6 = _T("");
- m_pend7 = _T("");
- m_pend8 = _T("");
- m_normal_mistake = 0.0f;
- m_specious_mistake = 0.0f;
- m_send0 = 0;
- m_send9 = 0;
- m_send1 = 0;
- m_send2 = 0;
- m_send3 = 0;
- m_send4 = 0;
- m_send5 = 0;
- m_send6 = 0;
- m_send7 = 0;
- m_send8 = 0;
- m_spend0 = _T("");
- m_spend1 = _T("");
- m_spend2 = _T("");
- m_spend3 = _T("");
- m_spend4 = _T("");
- m_spend5 = _T("");
- m_spend6 = _T("");
- m_spend7 = _T("");
- m_spend8 = _T("");
- m_spend9 = _T("");
- m_epp = 0.0f;
- m_epp1 = 0.0f;
- m_ett = 0.0f;
- m_ett1 = 0.0f;
- //}}AFX_DATA_INIT
- }
- void CEndDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CEndDlg)
- DDX_Text(pDX, IDC_END_EDIT1, m_end0);
- DDX_Text(pDX, IDC_END_EDIT10, m_end9);
- DDX_Text(pDX, IDC_END_EDIT2, m_end1);
- DDX_Text(pDX, IDC_END_EDIT3, m_end2);
- DDX_Text(pDX, IDC_END_EDIT4, m_end3);
- DDX_Text(pDX, IDC_END_EDIT5, m_end4);
- DDX_Text(pDX, IDC_END_EDIT6, m_end5);
- DDX_Text(pDX, IDC_END_EDIT7, m_end6);
- DDX_Text(pDX, IDC_END_EDIT8, m_end7);
- DDX_Text(pDX, IDC_END_EDIT9, m_end8);
- DDX_Text(pDX, IDC_END_P_EDIT1, m_pend0);
- DDX_Text(pDX, IDC_END_P_EDIT10, m_pend9);
- DDX_Text(pDX, IDC_END_P_EDIT2, m_pend1);
- DDX_Text(pDX, IDC_END_P_EDIT3, m_pend2);
- DDX_Text(pDX, IDC_END_P_EDIT4, m_pend3);
- DDX_Text(pDX, IDC_END_P_EDIT5, m_pend4);
- DDX_Text(pDX, IDC_END_P_EDIT6, m_pend5);
- DDX_Text(pDX, IDC_END_P_EDIT7, m_pend6);
- DDX_Text(pDX, IDC_END_P_EDIT8, m_pend7);
- DDX_Text(pDX, IDC_END_P_EDIT9, m_pend8);
- DDX_Text(pDX, IDC_MIS_EDIT1, m_normal_mistake);
- DDX_Text(pDX, IDC_MIS_EDIT2, m_specious_mistake);
- DDX_Text(pDX, IDC_S_END_EDIT1, m_send0);
- DDX_Text(pDX, IDC_S_END_EDIT10, m_send9);
- DDX_Text(pDX, IDC_S_END_EDIT2, m_send1);
- DDX_Text(pDX, IDC_S_END_EDIT3, m_send2);
- DDX_Text(pDX, IDC_S_END_EDIT4, m_send3);
- DDX_Text(pDX, IDC_S_END_EDIT5, m_send4);
- DDX_Text(pDX, IDC_S_END_EDIT6, m_send5);
- DDX_Text(pDX, IDC_S_END_EDIT7, m_send6);
- DDX_Text(pDX, IDC_S_END_EDIT8, m_send7);
- DDX_Text(pDX, IDC_S_END_EDIT9, m_send8);
- DDX_Text(pDX, IDC_S_END_P_EDIT32, m_spend0);
- DDX_Text(pDX, IDC_S_END_P_EDIT33, m_spend1);
- DDX_Text(pDX, IDC_S_END_P_EDIT34, m_spend2);
- DDX_Text(pDX, IDC_S_END_P_EDIT35, m_spend3);
- DDX_Text(pDX, IDC_S_END_P_EDIT36, m_spend4);
- DDX_Text(pDX, IDC_S_END_P_EDIT37, m_spend5);
- DDX_Text(pDX, IDC_S_END_P_EDIT38, m_spend6);
- DDX_Text(pDX, IDC_S_END_P_EDIT39, m_spend7);
- DDX_Text(pDX, IDC_S_END_P_EDIT40, m_spend8);
- DDX_Text(pDX, IDC_S_END_P_EDIT41, m_spend9);
- DDX_Text(pDX, IDC_EPP_EDIT1, m_epp);
- DDX_Text(pDX, IDC_EPP1_EDIT4, m_epp1);
- DDX_Text(pDX, IDC_ETT_EDIT2, m_ett);
- DDX_Text(pDX, IDC_ETT1_EDIT3, m_ett1);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CEndDlg, CDialog)
- //{{AFX_MSG_MAP(CEndDlg)
- ON_BN_CLICKED(IDC_BACK_BUTTON, OnBackButton)
- ON_WM_CTLCOLOR()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CEndDlg message handlers
- void CEndDlg::OnBackButton()
- {
- OnOK();
- }
- HBRUSH CEndDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- pDC->SetBkMode(TRANSPARENT);
- pDC->SetTextColor(RGB(0,128,0));
- return m_hbrush;
- }
- BOOL CEndDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_hbrush=CreateSolidBrush(RGB(0,0,0));
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }