?? wumpusstatic1.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 + -