📄 myserialrichedit.h
字号:
#if !defined(AFX_MySerialRichEdit_H__27EEE91A_DFC9_45F3_8A9E_F1702E1E9CB9__INCLUDED_)
#define AFX_MySerialRichEdit_H__27EEE91A_DFC9_45F3_8A9E_F1702E1E9CB9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySerialRichEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// MySerialRichEdit window
//详细参看VC6MUP 1156
#include ".\CPU\MyObject.h"
#include "Resource.h"
//#include "GlobalVar.h"
#include ".\CPU\SerialBus.h"
#include "DeviceManager.h"
class MySerialRichEdit : public CRichEditCtrl,public MyObject
{
// Construction
public:
TCHAR presavstr[1024];
TCHAR * ppos;
MySerialRichEdit();
CMenu RBDOWN,RBDCLK,SBUS;
int ismove,issize;
CFont pFount;
UINT high,width;
int Linknum;//连接到总线的个数
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(MySerialRichEdit)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
void RESTOREWND();
int MINWND();
int MAXWND();
int SeteditFont();
int SetWndSize();
int MyCharOut(char ch);
int MyTextOut(TCHAR * str, int scrollpos);
virtual ~MySerialRichEdit();
int SetFontBystr(TCHAR *str);
int Serial_Char_Event_CallBack(char ch);
int Serial_String_Event_CallBack(TCHAR *str);
// Generated message map functions
protected:
//{{AFX_MSG(MySerialRichEdit)
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSetfocus();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
afx_msg void OnWzdCommandRange_SBUSI(UINT uid);
afx_msg void OnWzdCommandRange(UINT uid);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MySerialRichEdit_H__27EEE91A_DFC9_45F3_8A9E_F1702E1E9CB9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -