ownstatic.h

来自「485通讯接口模块的编程应用」· C头文件 代码 · 共 65 行

H
65
字号
#if !defined(AFX_OWNSTATIC_H__09FBD50A_FE04_4597_A73A_3A6D03AE345A__INCLUDED_)
#define AFX_OWNSTATIC_H__09FBD50A_FE04_4597_A73A_3A6D03AE345A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OwnStatic.h : header file
//
 /////////////////////////////////////////////////////////////////////////////
// COwnStatic window
 
class COwnStatic : public CWnd
{
// Construction
public:
	COwnStatic();

// Attributes
public:

// Operations
public:
 
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COwnStatic)
	public:
	//}}AFX_VIRTUAL

// Implementation
public:
 	CRect rcInvali;
	void SetGradientColor(COLORREF crBegin , COLORREF crEnd);
	int iStatus;   //报警状态指示  0 正常绿色 1暗绿色 ,2报警色 , 3 闪的报警色 
 	COLORREF crDarkgreen;
	COLORREF crGreen ;
	COLORREF crRed;
	COLORREF crDarkred ; 
	BOOL     bRed   ;   //当状态为3的时候要不断的闪烁
	BOOL     bTime   ; // 让其闪烁 等待时间不同
	CString strTextleft;
	CString strTextright;
	
	virtual ~COwnStatic();

	// Generated message map functions
protected:
	COLORREF m_crEnd;
	COLORREF m_crBegin;
 	void DrawGradientFill(CDC* pDC, CRect* pRect, COLORREF crStart, COLORREF crEnd, int nSegments);
	//{{AFX_MSG(COwnStatic)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OWNSTATIC_H__09FBD50A_FE04_4597_A73A_3A6D03AE345A__INCLUDED_)

⌨️ 快捷键说明

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