datashowview.h
来自「串口收发工具」· C头文件 代码 · 共 98 行
H
98 行
// DataShowView.h : interface of the CDataShowView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHILDVIEW_H__C8C02E53_3981_11D5_92F0_0048546BBF53__INCLUDED_)
#define AFX_CHILDVIEW_H__C8C02E53_3981_11D5_92F0_0048546BBF53__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CDataShowView window
class CDataShowView : public CView
{
private:
CString strManual;
BYTE GetHexValue(char* chTemp);
// Construction
public:
CDataShowView();
DECLARE_DYNCREATE(CDataShowView)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDataShowView)
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
COLORREF m_color_normaltext;
COLORREF m_color_normalback;
COLORREF m_color_selecttext;
COLORREF m_color_selectback;
COLORREF m_color_keywordtext;
BOOL m_bfrozen;
void SetBufferLen(int nlen);
void ShowData(BYTE *pbyte,int nlen);
virtual ~CDataShowView();
afx_msg void OnClearWindow();
afx_msg void OnFreezeScreen();
inline void SetSpecialChar(BYTE byChar)
{m_specialbyte = byChar;}
// Generated message map functions
protected:
CFont m_font;
int m_linesshown;
int m_bufferbytes;
int m_bytesperline;
CArray<BYTE,BYTE> m_bytes;
//{{AFX_MSG(CDataShowView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
afx_msg void OnCopyData();
afx_msg void OnCopyDisp();
afx_msg void OnSelectAll();
afx_msg void OnSetSpByte();
DECLARE_MESSAGE_MAP()
private:
int m_oldcharpos;
BOOL m_bpointing;
BYTE m_specialbyte;
int m_btimer;
CPoint m_oldpoint;
int m_selfrom;//如果没有选中,m_selfrom=-1
int m_selto;
int m_firstsel;
BOOL m_bmousedown;
CRITICAL_SECTION cs;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDVIEW_H__C8C02E53_3981_11D5_92F0_0048546BBF53__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?