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

📄 mystatic.h

📁 操作系统课程设计:死锁问题。 哲学家进餐问题的解决!!!很好的操作系统大作业!
💻 H
字号:
#if !defined(AFX_MYSTATIC_H__58991FF9_1291_4FF7_A68F_B88728F650AB__INCLUDED_)
#define AFX_MYSTATIC_H__58991FF9_1291_4FF7_A68F_B88728F650AB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyStatic.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyStatic window

class CMyStatic : public CStatic
{
// Construction
public:
	CMyStatic();

// Attributes
private:
    COLORREF    m_ForeColor;        //文本颜色
    COLORREF    m_BackColor;        //背景色
    CBrush      m_BkBrush;          //背景刷
    CFont*      p_Font;             //字体

// 接口函数
public:
    void SetForeColor(COLORREF color);      //设置文本颜色
    void SetBkColor(COLORREF color);        //设置背景颜色
    void SetTextFont(int FontHight,LPCTSTR FontName);   //设置字体 

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	void set_waiting();
	void set_eating();
	void set_thinking();
	virtual ~CMyStatic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyStatic)
	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_MYSTATIC_H__58991FF9_1291_4FF7_A68F_B88728F650AB__INCLUDED_)

⌨️ 快捷键说明

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