📄 flagstatic.h
字号:
/********************************************************************
created: 2002/08/06
created: 6:8:2002 15:54
filename: E:\WORK\0806\DvsUser\FlagStatic.h
file path: E:\WORK\0806\DvsUser
file base: FlagStatic
file ext: h
author: Sun_J
purpose:
*********************************************************************/
#if !defined(AFX_FLAGSTATIC_H__82E24287_3D5E_4FD8_B7D4_62B825906214__INCLUDED_)
#define AFX_FLAGSTATIC_H__82E24287_3D5E_4FD8_B7D4_62B825906214__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FlagStatic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFlagStatic window
class CFlagStatic : public CStatic
{
// Construction
public:
CFlagStatic();
// Attributes
public:
VOID ChangeColor(COLORREF crNormal, COLORREF crAlert);
VOID SetFlagFont(LOGFONT lf);
VOID GetFlagFont(LOGFONT& lf);
VOID SetTitle(CString strTitle);
VOID GetTitle(CString& strTitle);
VOID SetAlert();
VOID SetNormal();
COLORREF GetAlert();
COLORREF GetNormal();
private:
BOOL B;
BOOL m_bState; //0: 正常 1: 报警
COLORREF m_crNormal; //正常颜色
COLORREF m_crAlert; //报警
COLORREF m_crPaint; //paint
CFont m_lf;
CString m_strTitle;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFlagStatic)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CFlagStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CFlagStatic)
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FLAGSTATIC_H__82E24287_3D5E_4FD8_B7D4_62B825906214__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -