mystatic.h
来自「操作系统课程设计:死锁问题。 哲学家进餐问题的解决!!!很好的操作系统大作业!」· C头文件 代码 · 共 62 行
H
62 行
#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 + =
减小字号Ctrl + -
显示快捷键?