PasswordDlg.cpp
资源名称:福利彩票号码统计.rar [点击查看]
上传用户:dinghaosmt
上传日期:2013-03-22
资源大小:110k
文件大小:2k
源码类别:
射击游戏
开发平台:
Visual C++
- // PasswordDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "福利彩票号码统计.h"
- #include "PasswordDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CPasswordDlg dialog
- CPasswordDlg::CPasswordDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CPasswordDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CPasswordDlg)
- m_Password = _T("");
- //}}AFX_DATA_INIT
- }
- void CPasswordDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPasswordDlg)
- DDX_Text(pDX, IDC_EDIT1, m_Password);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CPasswordDlg, CDialog)
- //{{AFX_MSG_MAP(CPasswordDlg)
- ON_BN_CLICKED(IDC_PASSWORD_BUTTON, OnPasswordButton)
- ON_WM_CTLCOLOR()
- ON_BN_CLICKED(IDC_GIVEUP_BUTTON, OnGiveupButton)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CPasswordDlg message handlers
- void CPasswordDlg::OnPasswordButton()
- {
- OnOK();
- }
- HBRUSH CPasswordDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- pDC->SetBkMode(TRANSPARENT);
- pDC->SetTextColor(RGB(0,0,128));
- return m_hbrush;
- }
- BOOL CPasswordDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_hbrush=CreateSolidBrush(RGB(128,255,128));
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CPasswordDlg::OnGiveupButton()
- {
- OnCancel();
- }