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

📄 lcd7.h

📁 LCD source code, for microcontroller AT89s51
💻 H
字号:

/* =====[ lcd7.h ]========================================== 
                                                                             
   Description:     The dbtest project, implementation of the lcd7.h                
                                                                             
                    Defines the behavior for the application.          
                                                                             
   Compiled:        MS-VC 6.00                                               
                                                                             
   Notes:           <Empty Notes>                                            
                                                                             
   Revisions:                                                                
                                                                             
      REV     DATE        BY            DESCRIPTION                       
      ----  --------  -----------  ----------------------------   
      0.00  1/15/2008  Peter Glen   Initial version.                         
                                                                             
   ======================================================================= */

#if !defined(AFX_LCD7_H__2D19C590_DD9E_4371_9827_4E02E4826C02__INCLUDED_)
#define AFX_LCD7_H__2D19C590_DD9E_4371_9827_4E02E4826C02__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//
// lcd7.h : header file
//

// Make sure these messages are not used in your application already
// If in doubt, use RegisterWindowMessages

#define WM_OVERFLOW			(WM_USER + 1)
#define WM_UNDERFLOW		(WM_USER + 2)
#define	WM_TCHANGE			(WM_USER + 3)

/////////////////////////////////////////////////////////////////////////////
// Clcd7 window

class Clcd7 : public CWnd
{
// Construction
public:
	Clcd7();
	int  gap, width;
	int  num, oldnum;
	int  low, high;
	int  firstpaint;

	CPoint oldpoint;
	
	bool seg1, seg2, seg3, seg4, seg5, seg6, seg7;
	
	COLORREF fg;
	COLORREF bg;

// Attributes
public:

// Operations
public:
	void SetFgColor(COLORREF col);
	void SetBgColor(COLORREF col);

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

// Implementation
public:
	void SetMinMax(int minn, int maxx);
	virtual ~Clcd7();

	// Generated message map functions
protected:
	//{{AFX_MSG(Clcd7)
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(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_LCD7_H__2D19C590_DD9E_4371_9827_4E02E4826C02__INCLUDED_)

⌨️ 快捷键说明

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