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

📄 display.h

📁 这是用Visual C++编写的步进电机驱动控制程序
💻 H
字号:
#if !defined(AFX_DISPLAY_H__60BE2B90_3992_46C6_AC39_818E7F2A4322__INCLUDED_)
#define AFX_DISPLAY_H__60BE2B90_3992_46C6_AC39_818E7F2A4322__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Display.h : header file
//
//显示屏抽象接口类,用于图形显示,包括波形,圆度,数据等
/////////////////////////////////////////////////////////////////////////////
// CDisplay window

class CDisplay : public CStatic
{
// Construction
public:
	CDisplay();

// Attributes
public:

// Operations
public:

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

// Implementation
public:

	virtual void DrawData(CDC *pDC);

	void set_BackGroundColor(COLORREF value);

	virtual void SetOrgAndExt(CDC *pDC);

	void DrawComment();

	void SetData(CPoint * pdate, int N);

	void SetComment(CString& strcomment);

	void Create(CRect Pos,CWnd *pParentWnd);

	virtual ~CDisplay();

	// Generated message map functions
protected:
	
	//int cyGraph;

	//int cxGraph;
	//{{AFX_MSG(CDisplay)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	
	CString m_comment;

	COLORREF m_TextColor;

	CFont TextFont;

	COLORREF m_BackGroundColor;
};

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

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

#endif // !defined(AFX_DISPLAY_H__60BE2B90_3992_46C6_AC39_818E7F2A4322__INCLUDED_)

⌨️ 快捷键说明

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