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

📄 wraningcontrol.h

📁 485通讯接口模块的编程应用
💻 H
字号:
#if !defined(AFX_WRANINGCONTROL_H__16FC07FD_7590_489B_B864_4EC98113BD48__INCLUDED_)
#define AFX_WRANINGCONTROL_H__16FC07FD_7590_489B_B864_4EC98113BD48__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WraningControl.h : header file
//
#include "OwnStatic.h"
 /////////////////////////////////////////////////////////////////////////////
// CWraningControl window
 
class CWraningControl : public CWnd  
{
// Construction
public:
	CWraningControl();
	COwnStatic  m_Ownstatic[18] ; 
 // Attributes
public:

// Operations
public:

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

// Implementation
public:
	void SetItem(int iIndex,CString strLeft , float fRight , int Status);
	void SetTitleGradientColor(COLORREF crBegin, COLORREF crEnd);
	void SetGradientColor(COLORREF crBegin, COLORREF crEnd);
	int iItemheight;
	int iItemcount;
	int iTopheight ; //标题高度
	int iItemspace ; //条目之间的间距
	void Refreshs(int iIndexitem );
 
	BOOL Init(int iNum ,CRect rcIn);   //必须在创建之前进行初始化
	CString strText;         //标题头
 	virtual ~CWraningControl();

	// Generated message map functions
protected:
	CRect rcClient ;   //创建控件的大小
	COLORREF m_crEnd;
	COLORREF m_crBegin;

	COLORREF m_crtitleEnd;
	COLORREF m_crtitleBegin;
	
	void DrawGradientFill(CDC *pDC, CRect *pRect, COLORREF crStart, COLORREF crEnd, int nSegments);
	//{{AFX_MSG(CWraningControl)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_WRANINGCONTROL_H__16FC07FD_7590_489B_B864_4EC98113BD48__INCLUDED_)

⌨️ 快捷键说明

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