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

📄 portdataview.h

📁 串口通讯演示程序
💻 H
字号:
// RevDataView.h : interface of the CPortDataView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_REVDATAVIEW_H__E0EE8825_EC35_4126_B80D_36143178C22D__INCLUDED_)
#define AFX_REVDATAVIEW_H__E0EE8825_EC35_4126_B80D_36143178C22D__INCLUDED_

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

class CRevDataCntrItem;

class CPortDataView : public CRichEditView
{
protected: // create from serialization only
	CPortDataView();
	DECLARE_DYNCREATE(CPortDataView)

// Attributes
public:
//	CRevDataDoc* GetDocument();
	CCeToolsApp *app;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPortDataView)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPortDataView();
/*
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
*/
public:
	int ViewData();
protected:
	CHARFORMAT cf;
	LOGFONT logfont;
	COLORREF colorref_rev;
	COLORREF colorref_back;
	long FlagCharColor;//关键字颜色
	int FlagCharNum;//关键字个数
	CString FlagChar[100];//关键字
	int ViewPause;//1:暂停
	int ListViewCount;

// Generated message map functions
protected:
	CString GetViewStr(int ch);
	//{{AFX_MSG(CPortDataView)
	afx_msg void OnFlagchar();
	afx_msg void OnFlagcolor();
	afx_msg void OnBackcolor();
	afx_msg void OnFontSet();
	afx_msg void OnCharcolorRev();
	afx_msg void OnClearChar();
	afx_msg void OnFlagcharView();
	afx_msg void OnCView();
	afx_msg void OnPView();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnShowA();
	afx_msg void OnShowB();
	afx_msg void OnShowAll();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	afx_msg void OnViewData(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};
/*
#ifndef _DEBUG  // debug version in RevDataView.cpp
inline CRevDataDoc* CPortDataView::GetDocument()
   { return (CRevDataDoc*)m_pDocument; }
#endif
*/
/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_REVDATAVIEW_H__E0EE8825_EC35_4126_B80D_36143178C22D__INCLUDED_)

⌨️ 快捷键说明

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