📄 ch11demo5view.h
字号:
// Ch11Demo5View.h : interface of the CCh11Demo5View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CH11DEMO5VIEW_H__C8E177B8_4CF3_49A9_A884_A698A8EBE851__INCLUDED_)
#define AFX_CH11DEMO5VIEW_H__C8E177B8_4CF3_49A9_A884_A698A8EBE851__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCh11Demo5View : public CView
{
protected: // create from serialization only
CCh11Demo5View();
DECLARE_DYNCREATE(CCh11Demo5View)
// Attributes
public:
CCh11Demo5Doc* GetDocument();
// Operations
public:
COLORREF frontColor; //文本颜色
CFont fnt; //字体结构
COLORREF backColor; //背景色
CString str; //输出字符串
CFindReplaceDialog *pFindReplaceDlg; //查找替换对话框
BOOL bFindOnly; //判断查找对话框类型
int pos;//记录查找字符串位置
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCh11Demo5View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCh11Demo5View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
afx_msg LRESULT OnFindReplace(WPARAM, LPARAM lParam);//回调函数
//{{AFX_MSG(CCh11Demo5View)
afx_msg void OnFont();
afx_msg void OnBackcolor();
afx_msg void OnTextcolor();
afx_msg void OnFind();
afx_msg void OnReplace();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Ch11Demo5View.cpp
inline CCh11Demo5Doc* CCh11Demo5View::GetDocument()
{ return (CCh11Demo5Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CH11DEMO5VIEW_H__C8E177B8_4CF3_49A9_A884_A698A8EBE851__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -