DeleteDlg.cpp
上传用户:dinghaosmt
上传日期:2013-03-22
资源大小:110k
文件大小:2k
源码类别:

射击游戏

开发平台:

Visual C++

  1. // DeleteDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "福利彩票号码统计.h"
  5. #include "DeleteDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDeleteDlg dialog
  13. CDeleteDlg::CDeleteDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CDeleteDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CDeleteDlg)
  17. m_Del_ID = 0;
  18. //}}AFX_DATA_INIT
  19. }
  20. void CDeleteDlg::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CDeleteDlg)
  24. DDX_Text(pDX, IDC_EDIT1, m_Del_ID);
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(CDeleteDlg, CDialog)
  28. //{{AFX_MSG_MAP(CDeleteDlg)
  29. ON_BN_CLICKED(IDC_DELETE_BUTTON, OnDeleteButton)
  30. ON_BN_CLICKED(IDC_EXIT_BUTTON, OnExitButton)
  31. ON_WM_CTLCOLOR()
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CDeleteDlg message handlers
  36. void CDeleteDlg::OnDeleteButton() 
  37. {
  38. OnOK();
  39. }
  40. void CDeleteDlg::OnExitButton() 
  41. {
  42. OnCancel();
  43. }
  44. HBRUSH CDeleteDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
  45. {
  46. pDC->SetBkMode(TRANSPARENT);
  47.                
  48. pDC->SetTextColor(RGB(0,0,255));
  49. return m_hbrush;
  50. }
  51. BOOL CDeleteDlg::OnInitDialog() 
  52. {
  53. CDialog::OnInitDialog();
  54. m_hbrush=CreateSolidBrush(RGB(128,0,128));
  55. return TRUE;  // return TRUE unless you set the focus to a control
  56.               // EXCEPTION: OCX Property Pages should return FALSE
  57. }