📄 cornerstatic.cpp
字号:
// ColorStatic.cpp : implementation file
//
#include "stdafx.h"
#include "Netmsg.h"
#include "ColorStatic.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//Those blue border lines in the main dialog (it probably wasn't worth creating an entire class for these)
CColorStatic::CColorStatic(COLORREF crFore, COLORREF crBack)
{
Brush.CreateSolidBrush(crBack);
}
CColorStatic::~CColorStatic()
{
}
BEGIN_MESSAGE_MAP(CColorStatic, CStatic)
//{{AFX_MSG_MAP(CColorStatic)
ON_WM_CTLCOLOR_REFLECT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CColorStatic message handlers
HBRUSH CColorStatic::CtlColor(CDC* pDC, UINT nCtlColor)
{
pDC->SetBkColor(RGB(0, 73, 181));
pDC->SetTextColor(RGB(181, 203, 239));
// TODO: Return a non-NULL brush if the parent's handler should not be called
return (HBRUSH) Brush;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -