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

📄 colorstatic.h

📁 程序开发中写log用的实现代码, C语言代码, 可以不用修改再C++或MFC中使用, 可以将写log的函数使用方法同printf, 可以接收可变参数. 对于开发程序很有帮助.
💻 H
字号:
// ColorStatic.h: interface for the CColorStatic class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CColorStatic_H__EB40A58A_BD43_4EEF_A0C9_BAFA85A5574F__INCLUDED_)
#define AFX_CColorStatic_H__EB40A58A_BD43_4EEF_A0C9_BAFA85A5574F__INCLUDED_

class CColorStatic: public CStatic
{
 DECLARE_DYNAMIC(CColorStatic)

// Constructor/Destructor
public:
 CColorStatic();

public:
 void SetTextColor(COLORREF clrText);

protected:
 virtual void PreSubclassWindow();
 

protected:
    COLORREF    m_clrText;
    COLORREF    m_clrBack;
    CBrush      m_brBkgnd;
   
protected:
    afx_msg HBRUSH CtlColor(CDC *pDC, UINT nCtlColor);
    DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_CColorStatic_H__EB40A58A_BD43_4EEF_A0C9_BAFA85A5574F__INCLUDED_)

⌨️ 快捷键说明

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