display.h

来自「这是用Visual C++编写的步进电机驱动控制程序」· C头文件 代码 · 共 78 行

H
78
字号
#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 + =
减小字号Ctrl + -
显示快捷键?