Dlg1.cpp
资源名称:WarH_2.10.rar [点击查看]
上传用户:tree100901
上传日期:2016-07-12
资源大小:182k
文件大小:1k
源码类别:
外挂编程
开发平台:
Visual C++
- // Dlg1.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "WarH.h"
- #include "Dlg1.h"
- // CDlg1 对话框
- IMPLEMENT_DYNAMIC(CDlg1, CDialog)
- CDlg1::CDlg1(CWnd* pParent /*=NULL*/)
- : CDialog(CDlg1::IDD, pParent)
- {
- }
- CDlg1::~CDlg1()
- {
- }
- void CDlg1::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- }
- BEGIN_MESSAGE_MAP(CDlg1, CDialog)
- ON_WM_CTLCOLOR()
- END_MESSAGE_MAP()
- // CDlg1 消息处理程序
- HBRUSH CDlg1::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
- // TODO: 在此更改 DC 的任何属性
- int nID = pWnd->GetDlgCtrlID();
- if ( nID == IDC_STATIC)
- {
- // 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;
- }