mystatic.h

来自「与EVOC板卡PCI-16P16R通讯」· C头文件 代码 · 共 64 行

H
64
字号
#if !defined(AFX_MYSTATIC_H__A4A7BA6E_D602_11D2_9F43_EC1A6EED8820__INCLUDED_)
#define AFX_MYSTATIC_H__A4A7BA6E_D602_11D2_9F43_EC1A6EED8820__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
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL EnableLeftBD(BOOL enable);
	void SetFlagVal(long wflag);
	long GetFlagVal();
	void SetLampSize(int lampsize,int sp);
	void SetBitCount(int cn);
	void SetLampColor(CBrush hibr,CBrush lowbr);
	virtual ~CMyStatic();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	// Generated message map functions
protected:
	//{{AFX_MSG(CMyStatic)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	int starpos;
	CBrush * highbr;//bit=1 brush default:Red
	CBrush * lowbr;//bit=0 brush   default:White
	long flagval;//Lamp describle value default:0
	int bitcount;//counter of lamp | bit  defautl:8
	int lampsize;//default:20
	BOOL enlbd;//Enable Left Button Down Event default:False
	int space;//space between two lamps //default:8
};

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

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

#endif // !defined(AFX_MYSTATIC_H__A4A7BA6E_D602_11D2_9F43_EC1A6EED8820__INCLUDED_)

⌨️ 快捷键说明

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