📄 logwindow.h
字号:
#pragma once#include "afxcmn.h"#include "ambulant/lib/amstream.h"// Implementation of lib::ostream that sends output to the// log window.class logwindow_ostream : public ambulant::lib::ostream { bool is_open() const {return true;} void close() {} int write(const unsigned char *buffer, int nbytes) {return write("ostream use of buffer, size not implemented for MFC");} int write(const char *cstr); void write(ambulant::lib::byte_buffer& bb) {write("ostream use of byte_buffer not implemented for MFC");} void flush() {}};// LogWindow dialogclass CLogWindow : public CDialog{ DECLARE_DYNAMIC(CLogWindow)private: CLogWindow(CWnd* pParent = NULL); // standard constructor static CLogWindow *s_singleton;public: static CLogWindow *GetLogWindowSingleton(); virtual ~CLogWindow(); void AppendText(const char *data);// Dialog Data enum { IDD = IDD_LOG_WINDOW };protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support DECLARE_MESSAGE_MAP()public: CRichEditCtrl m_richedit; afx_msg void OnEnChangeRichedit21();};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -