📄 texteditor.h
字号:
#if !defined(AFX_TEXTEDITOR_H__0D01AC8D_C44F_40C8_AD06_ACE6B5A346E0__INCLUDED_)
#define AFX_TEXTEDITOR_H__0D01AC8D_C44F_40C8_AD06_ACE6B5A346E0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextEditor.h : header file
//
#include "ColorWnd.h"
/////////////////////////////////////////////////////////////////////////////
// CTextEditor dialog
class CTextEditor : public CDialog
{
// Construction
public:
CTextEditor(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTextEditor)
enum { IDD = IDD_TEXTEDIT_DIALOG };
CXPButton m_SetfcButton;
CXPButton m_SetbcButton;
CXPButton m_SaveAsButton;
CXPButton m_SaveButton;
CXPButton m_OpenButton;
CXPButton m_OkButton;
CXPButton m_NewButton;
CXPButton m_CancelButton;
CEdit m_text_editor;
CComboBox m_fontlist_combobox;
CColorWnd m_fc_static;
CColorWnd m_bc_static;
CString m_edit_filename;
long m_fontheight;
long m_fontwidth;
int m_startx;
int m_starty;
BOOL m_auto_return;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTextEditor)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CTextEditor)
virtual BOOL OnInitDialog();
afx_msg void OnNewButton();
afx_msg void OnOpenButton();
afx_msg void OnSaveButton();
afx_msg void OnSaveasButton();
afx_msg void OnSetfcButton();
afx_msg void OnSetbcButton();
afx_msg void OnCancelButton();
afx_msg void OnOkButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEXTEDITOR_H__0D01AC8D_C44F_40C8_AD06_ACE6B5A346E0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -