mystatic.cpp

来自「采用MFC+SQLSERVER 2000的图书管理系统,ODBC方式连接数据库。」· C++ 代码 · 共 46 行

CPP
46
字号
// MyStatic.cpp : implementation file
//

#include "stdafx.h"
#include "library.h"
#include "MyStatic.h"


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

/////////////////////////////////////////////////////////////////////////////
// MyStatic

MyStatic::MyStatic()
{
}

MyStatic::~MyStatic()
{
}


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

/////////////////////////////////////////////////////////////////////////////
// MyStatic message handlers

HBRUSH MyStatic::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CStatic::OnCtlColor(pDC, pWnd, nCtlColor);
	
	// TODO: Change any attributes of the DC here
	pDC->SetBkMode(TRANSPARENT);	
	
	// TODO: Return a different brush if the default is not desired
	return hbr;
}

⌨️ 快捷键说明

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