ResultDlg.cpp
资源名称:福利彩票号码统计.rar [点击查看]
上传用户:dinghaosmt
上传日期:2013-03-22
资源大小:110k
文件大小:9k
源码类别:
射击游戏
开发平台:
Visual C++
- // ResultDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "福利彩票号码统计.h"
- #include "ResultDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CResultDlg dialog
- CResultDlg::CResultDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CResultDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CResultDlg)
- m_1 = 0;
- m_9 = 0;
- m_10 = 0;
- m_11 = 0;
- m_12 = 0;
- m_13 = 0;
- m_14 = 0;
- m_15 = 0;
- m_16 = 0;
- m_2 = 0;
- m_17 = 0;
- m_18 = 0;
- m_19 = 0;
- m_20 = 0;
- m_21 = 0;
- m_22 = 0;
- m_23 = 0;
- m_24 = 0;
- m_25 = 0;
- m_26 = 0;
- m_3 = 0;
- m_27 = 0;
- m_28 = 0;
- m_29 = 0;
- m_30 = 0;
- m_31 = 0;
- m_32 = 0;
- m_4 = 0;
- m_5 = 0;
- m_6 = 0;
- m_7 = 0;
- m_8 = 0;
- m_s1 = 0;
- m_s10 = 0;
- m_s11 = 0;
- m_s12 = 0;
- m_s13 = 0;
- m_s14 = 0;
- m_s15 = 0;
- m_s16 = 0;
- m_s17 = 0;
- m_s18 = 0;
- m_s19 = 0;
- m_s2 = 0;
- m_s20 = 0;
- m_s21 = 0;
- m_s22 = 0;
- m_s23 = 0;
- m_s24 = 0;
- m_s25 = 0;
- m_s26 = 0;
- m_s27 = 0;
- m_s28 = 0;
- m_s29 = 0;
- m_s3 = 0;
- m_s30 = 0;
- m_s31 = 0;
- m_s32 = 0;
- m_s4 = 0;
- m_s5 = 0;
- m_s6 = 0;
- m_s7 = 0;
- m_s8 = 0;
- m_s9 = 0;
- m_p1 = _T("");
- m_p10 = _T("");
- m_p11 = _T("");
- m_p12 = _T("");
- m_p13 = _T("");
- m_p14 = _T("");
- m_p15 = _T("");
- m_p16 = _T("");
- m_p17 = _T("");
- m_p18 = _T("");
- m_p19 = _T("");
- m_p2 = _T("");
- m_p20 = _T("");
- m_p21 = _T("");
- m_p22 = _T("");
- m_p23 = _T("");
- m_p24 = _T("");
- m_p25 = _T("");
- m_p26 = _T("");
- m_p27 = _T("");
- m_p28 = _T("");
- m_p29 = _T("");
- m_p3 = _T("");
- m_p30 = _T("");
- m_p31 = _T("");
- m_p32 = _T("");
- m_p4 = _T("");
- m_p5 = _T("");
- m_p6 = _T("");
- m_p7 = _T("");
- m_p8 = _T("");
- m_p9 = _T("");
- m_sp1 = _T("");
- m_sp10 = _T("");
- m_sp11 = _T("");
- m_sp12 = _T("");
- m_sp13 = _T("");
- m_sp14 = _T("");
- m_sp15 = _T("");
- m_sp16 = _T("");
- m_sp17 = _T("");
- m_sp18 = _T("");
- m_sp19 = _T("");
- m_sp2 = _T("");
- m_sp20 = _T("");
- m_sp21 = _T("");
- m_sp22 = _T("");
- m_sp23 = _T("");
- m_sp24 = _T("");
- m_sp25 = _T("");
- m_sp26 = _T("");
- m_sp27 = _T("");
- m_sp28 = _T("");
- m_sp29 = _T("");
- m_sp3 = _T("");
- m_sp30 = _T("");
- m_sp31 = _T("");
- m_sp32 = _T("");
- m_sp4 = _T("");
- m_sp5 = _T("");
- m_sp6 = _T("");
- m_sp7 = _T("");
- m_sp8 = _T("");
- m_sp9 = _T("");
- m_w1 = 0;
- m_w2 = 0;
- m_w3 = 0;
- m_w4 = 0;
- m_w5 = 0;
- m_w6 = 0;
- m_w7 = 0;
- m_w8 = 0;
- m_pw1 = _T("");
- m_pw2 = _T("");
- m_pw3 = _T("");
- m_pw4 = _T("");
- m_pw5 = _T("");
- m_pw6 = _T("");
- m_pw7 = _T("");
- m_pw8 = _T("");
- m_mistake = 0.0f;
- m_wide_mistake = 0.0f;
- m_spe_mistake = 0.0f;
- m_tt = 0.0f;
- m_ww = 0.0f;
- m_pp = 0.0f;
- //}}AFX_DATA_INIT
- }
- void CResultDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CResultDlg)
- DDX_Text(pDX, IDC_EDIT1, m_1);
- DDX_Text(pDX, IDC_EDIT10, m_9);
- DDX_Text(pDX, IDC_EDIT11, m_10);
- DDX_Text(pDX, IDC_EDIT12, m_11);
- DDX_Text(pDX, IDC_EDIT13, m_12);
- DDX_Text(pDX, IDC_EDIT14, m_13);
- DDX_Text(pDX, IDC_EDIT15, m_14);
- DDX_Text(pDX, IDC_EDIT16, m_15);
- DDX_Text(pDX, IDC_EDIT17, m_16);
- DDX_Text(pDX, IDC_EDIT2, m_2);
- DDX_Text(pDX, IDC_EDIT20, m_17);
- DDX_Text(pDX, IDC_EDIT21, m_18);
- DDX_Text(pDX, IDC_EDIT22, m_19);
- DDX_Text(pDX, IDC_EDIT23, m_20);
- DDX_Text(pDX, IDC_EDIT24, m_21);
- DDX_Text(pDX, IDC_EDIT25, m_22);
- DDX_Text(pDX, IDC_EDIT26, m_23);
- DDX_Text(pDX, IDC_EDIT27, m_24);
- DDX_Text(pDX, IDC_EDIT28, m_25);
- DDX_Text(pDX, IDC_EDIT29, m_26);
- DDX_Text(pDX, IDC_EDIT3, m_3);
- DDX_Text(pDX, IDC_EDIT30, m_27);
- DDX_Text(pDX, IDC_EDIT31, m_28);
- DDX_Text(pDX, IDC_EDIT32, m_29);
- DDX_Text(pDX, IDC_EDIT33, m_30);
- DDX_Text(pDX, IDC_EDIT34, m_31);
- DDX_Text(pDX, IDC_EDIT35, m_32);
- DDX_Text(pDX, IDC_EDIT4, m_4);
- DDX_Text(pDX, IDC_EDIT5, m_5);
- DDX_Text(pDX, IDC_EDIT6, m_6);
- DDX_Text(pDX, IDC_EDIT7, m_7);
- DDX_Text(pDX, IDC_EDIT8, m_8);
- DDX_Text(pDX, IDC_S_EDIT1, m_s1);
- DDX_Text(pDX, IDC_S_EDIT10, m_s10);
- DDX_Text(pDX, IDC_S_EDIT11, m_s11);
- DDX_Text(pDX, IDC_S_EDIT12, m_s12);
- DDX_Text(pDX, IDC_S_EDIT13, m_s13);
- DDX_Text(pDX, IDC_S_EDIT14, m_s14);
- DDX_Text(pDX, IDC_S_EDIT15, m_s15);
- DDX_Text(pDX, IDC_S_EDIT16, m_s16);
- DDX_Text(pDX, IDC_S_EDIT17, m_s17);
- DDX_Text(pDX, IDC_S_EDIT18, m_s18);
- DDX_Text(pDX, IDC_S_EDIT19, m_s19);
- DDX_Text(pDX, IDC_S_EDIT2, m_s2);
- DDX_Text(pDX, IDC_S_EDIT20, m_s20);
- DDX_Text(pDX, IDC_S_EDIT21, m_s21);
- DDX_Text(pDX, IDC_S_EDIT22, m_s22);
- DDX_Text(pDX, IDC_S_EDIT23, m_s23);
- DDX_Text(pDX, IDC_S_EDIT24, m_s24);
- DDX_Text(pDX, IDC_S_EDIT25, m_s25);
- DDX_Text(pDX, IDC_S_EDIT26, m_s26);
- DDX_Text(pDX, IDC_S_EDIT27, m_s27);
- DDX_Text(pDX, IDC_S_EDIT28, m_s28);
- DDX_Text(pDX, IDC_S_EDIT29, m_s29);
- DDX_Text(pDX, IDC_S_EDIT3, m_s3);
- DDX_Text(pDX, IDC_S_EDIT30, m_s30);
- DDX_Text(pDX, IDC_S_EDIT31, m_s31);
- DDX_Text(pDX, IDC_S_EDIT32, m_s32);
- DDX_Text(pDX, IDC_S_EDIT4, m_s4);
- DDX_Text(pDX, IDC_S_EDIT5, m_s5);
- DDX_Text(pDX, IDC_S_EDIT6, m_s6);
- DDX_Text(pDX, IDC_S_EDIT7, m_s7);
- DDX_Text(pDX, IDC_S_EDIT8, m_s8);
- DDX_Text(pDX, IDC_S_EDIT9, m_s9);
- DDX_Text(pDX, IDC_P_EDIT1, m_p1);
- DDX_Text(pDX, IDC_P_EDIT10, m_p10);
- DDX_Text(pDX, IDC_P_EDIT11, m_p11);
- DDX_Text(pDX, IDC_P_EDIT12, m_p12);
- DDX_Text(pDX, IDC_P_EDIT13, m_p13);
- DDX_Text(pDX, IDC_P_EDIT14, m_p14);
- DDX_Text(pDX, IDC_P_EDIT15, m_p15);
- DDX_Text(pDX, IDC_P_EDIT16, m_p16);
- DDX_Text(pDX, IDC_P_EDIT17, m_p17);
- DDX_Text(pDX, IDC_P_EDIT18, m_p18);
- DDX_Text(pDX, IDC_P_EDIT19, m_p19);
- DDX_Text(pDX, IDC_P_EDIT2, m_p2);
- DDX_Text(pDX, IDC_P_EDIT20, m_p20);
- DDX_Text(pDX, IDC_P_EDIT21, m_p21);
- DDX_Text(pDX, IDC_P_EDIT22, m_p22);
- DDX_Text(pDX, IDC_P_EDIT23, m_p23);
- DDX_Text(pDX, IDC_P_EDIT24, m_p24);
- DDX_Text(pDX, IDC_P_EDIT25, m_p25);
- DDX_Text(pDX, IDC_P_EDIT26, m_p26);
- DDX_Text(pDX, IDC_P_EDIT27, m_p27);
- DDX_Text(pDX, IDC_P_EDIT28, m_p28);
- DDX_Text(pDX, IDC_P_EDIT29, m_p29);
- DDX_Text(pDX, IDC_P_EDIT3, m_p3);
- DDX_Text(pDX, IDC_P_EDIT30, m_p30);
- DDX_Text(pDX, IDC_P_EDIT31, m_p31);
- DDX_Text(pDX, IDC_P_EDIT32, m_p32);
- DDX_Text(pDX, IDC_P_EDIT4, m_p4);
- DDX_Text(pDX, IDC_P_EDIT5, m_p5);
- DDX_Text(pDX, IDC_P_EDIT6, m_p6);
- DDX_Text(pDX, IDC_P_EDIT7, m_p7);
- DDX_Text(pDX, IDC_P_EDIT8, m_p8);
- DDX_Text(pDX, IDC_P_EDIT9, m_p9);
- DDX_Text(pDX, IDC_SP_EDIT1, m_sp1);
- DDX_Text(pDX, IDC_SP_EDIT10, m_sp10);
- DDX_Text(pDX, IDC_SP_EDIT11, m_sp11);
- DDX_Text(pDX, IDC_SP_EDIT12, m_sp12);
- DDX_Text(pDX, IDC_SP_EDIT13, m_sp13);
- DDX_Text(pDX, IDC_SP_EDIT14, m_sp14);
- DDX_Text(pDX, IDC_SP_EDIT15, m_sp15);
- DDX_Text(pDX, IDC_SP_EDIT16, m_sp16);
- DDX_Text(pDX, IDC_SP_EDIT17, m_sp17);
- DDX_Text(pDX, IDC_SP_EDIT18, m_sp18);
- DDX_Text(pDX, IDC_SP_EDIT19, m_sp19);
- DDX_Text(pDX, IDC_SP_EDIT2, m_sp2);
- DDX_Text(pDX, IDC_SP_EDIT20, m_sp20);
- DDX_Text(pDX, IDC_SP_EDIT21, m_sp21);
- DDX_Text(pDX, IDC_SP_EDIT22, m_sp22);
- DDX_Text(pDX, IDC_SP_EDIT23, m_sp23);
- DDX_Text(pDX, IDC_SP_EDIT24, m_sp24);
- DDX_Text(pDX, IDC_SP_EDIT25, m_sp25);
- DDX_Text(pDX, IDC_SP_EDIT26, m_sp26);
- DDX_Text(pDX, IDC_SP_EDIT27, m_sp27);
- DDX_Text(pDX, IDC_SP_EDIT28, m_sp28);
- DDX_Text(pDX, IDC_SP_EDIT29, m_sp29);
- DDX_Text(pDX, IDC_SP_EDIT3, m_sp3);
- DDX_Text(pDX, IDC_SP_EDIT30, m_sp30);
- DDX_Text(pDX, IDC_SP_EDIT31, m_sp31);
- DDX_Text(pDX, IDC_SP_EDIT32, m_sp32);
- DDX_Text(pDX, IDC_SP_EDIT4, m_sp4);
- DDX_Text(pDX, IDC_SP_EDIT5, m_sp5);
- DDX_Text(pDX, IDC_SP_EDIT6, m_sp6);
- DDX_Text(pDX, IDC_SP_EDIT7, m_sp7);
- DDX_Text(pDX, IDC_SP_EDIT8, m_sp8);
- DDX_Text(pDX, IDC_SP_EDIT9, m_sp9);
- DDX_Text(pDX, IDC_QU_EDIT1, m_w1);
- DDX_Text(pDX, IDC_QU_EDIT2, m_w2);
- DDX_Text(pDX, IDC_QU_EDIT3, m_w3);
- DDX_Text(pDX, IDC_QU_EDIT4, m_w4);
- DDX_Text(pDX, IDC_QU_EDIT5, m_w5);
- DDX_Text(pDX, IDC_QU_EDIT6, m_w6);
- DDX_Text(pDX, IDC_QU_EDIT7, m_w7);
- DDX_Text(pDX, IDC_QU_EDIT8, m_w8);
- DDX_Text(pDX, IDC_QU_P__EDIT1, m_pw1);
- DDX_Text(pDX, IDC_QU_P__EDIT2, m_pw2);
- DDX_Text(pDX, IDC_QU_P__EDIT3, m_pw3);
- DDX_Text(pDX, IDC_QU_P__EDIT4, m_pw4);
- DDX_Text(pDX, IDC_QU_P__EDIT5, m_pw5);
- DDX_Text(pDX, IDC_QU_P__EDIT6, m_pw6);
- DDX_Text(pDX, IDC_QU_P__EDIT7, m_pw7);
- DDX_Text(pDX, IDC_QU_P__EDIT8, m_pw8);
- DDX_Text(pDX, IDC_EDIT18, m_mistake);
- DDX_Text(pDX, IDC_EDIT19, m_wide_mistake);
- DDX_Text(pDX, IDC_EDIT36, m_spe_mistake);
- DDX_Text(pDX, IDC_TT_EDIT, m_tt);
- DDX_Text(pDX, IDC_WW_EDIT, m_ww);
- DDX_Text(pDX, IDC_PP_EDIT, m_pp);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CResultDlg, CDialog)
- //{{AFX_MSG_MAP(CResultDlg)
- ON_WM_CTLCOLOR()
- ON_BN_CLICKED(IDC_END_BUTTON, OnEndButton)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CResultDlg message handlers
- BOOL CResultDlg::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
- }
- HBRUSH CResultDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- pDC->SetBkMode(TRANSPARENT);
- pDC->SetTextColor(RGB(128,0,255));
- return m_hbrush;
- }
- void CResultDlg::OnEndButton()
- {
- OnOK();
- }