头文件:#if !defined(AFX_SUYISTATIC_H__430356B9_E7E3_44F9_A665_A5664A287661__INCLUDED_)
#define AFX_SUYISTATIC_H__430356B9_E7E3_44F9_A665_A5664A287661__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SuYiStatic.h : header file
///////////////////////////////////////////////////////////////////////////////
// CSuYiStatic windowclass CSuYiStatic : public CStatic
{
// Construction
public:
CSuYiStatic();// Attributes
public:// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSuYiStatic)
//}}AFX_VIRTUAL// Implementation
public:
virtual ~CSuYiStatic(); // Generated message map functions
protected:
//{{AFX_MSG(CSuYiStatic)
// NOTE - the ClassWizard will add and remove member functions here.
    afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor); //}}AFX_MSG DECLARE_MESSAGE_MAP()
};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_SUYISTATIC_H__430356B9_E7E3_44F9_A665_A5664A287661__INCLUDED_)CPP文件:
/ SuYiStatic.cpp : implementation file
//#include "stdafx.h"
#include "SuYiStatic.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CSuYiStaticCSuYiStatic::CSuYiStatic()
{
}CSuYiStatic::~CSuYiStatic()
{
}
BEGIN_MESSAGE_MAP(CSuYiStatic, CStatic)
//{{AFX_MSG_MAP(CSuYiStatic)
// NOTE - the ClassWizard will add and remove mapping macros here.
ON_WM_CTLCOLOR_REFLECT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CSuYiStatic message handlers
HBRUSH CSuYiStatic::CtlColor(CDC* pDC, UINT nCtlColor) 
{
    ASSERT(nCtlColor == CTLCOLOR_STATIC);     
     pDC->SetTextColor(RGB(0,100,100));    // transparent text.
    pDC->SetBkMode(TRANSPARENT);
    return (HBRUSH)GetStockObject(NULL_BRUSH);
}