Dlg5.cpp
资源名称:WarH_2.10.rar [点击查看]
上传用户:tree100901
上传日期:2016-07-12
资源大小:182k
文件大小:2k
源码类别:
外挂编程
开发平台:
Visual C++
- // Dlg5.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "WarH.h"
- #include "Dlg5.h"
- // CDlg5 对话框
- IMPLEMENT_DYNAMIC(CDlg5, CDialog)
- CDlg5::CDlg5(CWnd* pParent /*=NULL*/)
- : CDialog(CDlg5::IDD, pParent)
- {
- }
- CDlg5::~CDlg5()
- {
- }
- void CDlg5::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_EDITH, m_Edit);
- }
- BEGIN_MESSAGE_MAP(CDlg5, CDialog)
- ON_WM_SHOWWINDOW()
- ON_WM_CTLCOLOR()
- END_MESSAGE_MAP()
- // CDlg5 消息处理程序
- void CDlg5::OnShowWindow(BOOL bShow, UINT nStatus)
- {
- CDialog::OnShowWindow(bShow, nStatus);
- // TODO: 在此处添加消息处理程序代码
- m_Edit.SetWindowText(_T("加黄金和木材100W------------> greedisgood 1000000 rn加黄金100W------------------> keysersoze 1000000 rn加木材100W------------------> leafittome 1000000rn加人口上限------------------> pointbreakrn无敌且拥有一击必杀----------> whosyourdaddyrn显示全部地图----------------> iseedeadpeoplern立即获胜--------------------> allyourbasearebelongtousrn立即战败--------------------> somebodysetupusthebombrn不会被判定获胜--------------> itvexesmern不会被判定战败--------------> strengthandhonorrn法力无限--------------------> thereisnospoonrn研发加速--------------------> whoisjohngaltrn快速建筑--------------------> warptenrn建筑物升级------------------> sharpandshinyrn科技全开--------------------> synergyrn调整时间--------------------> daylightsavings"));
- }
- HBRUSH CDlg5::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
- // TODO: 在此更改 DC 的任何属性
- int nID = pWnd->GetDlgCtrlID();
- if ( nID == IDC_EDITH)
- {
- // Set the text color to red
- pDC->SetTextColor(RGB(0, 0, 255));
- // Set the background mode for text to transparent
- // so background will show thru.
- pDC->SetBkMode(TRANSPARENT);
- }
- // TODO: 如果默认的不是所需画笔,则返回另一个画笔
- return hbr;
- }