⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wumpusstatic1.cpp

📁 一款有关于人工智能的游戏的源代码
💻 CPP
字号:
// WumpusStatic1.cpp : implementation file
//

#include "stdafx.h"
#include "Wumpus.h"
#include "WumpusStatic1.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CWumpusStatic

CWumpusStatic::CWumpusStatic()
{

}

CWumpusStatic::~CWumpusStatic()
{
}


BEGIN_MESSAGE_MAP(CWumpusStatic, CStatic)
	//{{AFX_MSG_MAP(CWumpusStatic)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWumpusStatic message handlers

HBRUSH CWumpusStatic::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CStatic::OnCtlColor(pDC, pWnd, nCtlColor);
	static CBrush m_brush(RGB(0,128,0));
	// TODO: Change any attributes of the DC here
	if (pWnd->GetDlgCtrlID() == IDC_WUMPUS)
   {
      // Set the text color to red
      pDC->SetTextColor(RGB(255, 0, 0));

      // Set the background mode for text to transparent 
      // so background will show thru.
      pDC->SetBkMode(TRANSPARENT);

      // Return handle to our CBrush object
      hbr = m_brush;
   }

	// TODO: Return a different brush if the default is not desired
	return hbr;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -