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

📄 ownstatic.h

📁 485通讯接口模块的编程应用
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -