⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wediterview.h

📁 微型文本编辑器. 多文档界面
💻 H
字号:
// WediterView.h : interface of the CWediterView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_WEDITERVIEW_H__6CC09503_9FAA_4A83_8126_51C65C1C2CCF__INCLUDED_)
#define AFX_WEDITERVIEW_H__6CC09503_9FAA_4A83_8126_51C65C1C2CCF__INCLUDED_

#include "Wediter.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



class CWediterView : public CEditView
{
protected: // create from serialization only
	CWediterView();
	DECLARE_DYNCREATE(CWediterView)

// Attributes
public:
	CWediterDoc* GetDocument();

	static void Initialize();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWediterView)
	public:
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation m_top
public:
	void finding(bool breplace=FALSE);
	SFinder fd;

	void SetFinder(CString text="",int inext=1,int icase=0,int icount=0,bool bfind=FALSE);

	virtual ~CWediterView();

	static int m_nundown;
	//static int m_oldnundown;
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
// Generated message map functions
protected:
	CString Getselstext();
	bool Selsis();
	void CloseView(bool bclose=TRUE);
	void ShowRowCol();

	static LOGFONT NEAR m_lfDefFont;
	static LOGFONT NEAR m_lfDefFontOld;
	CFont m_font;

	static COLORREF m_colors;
	static COLORREF m_oldcolors;
	COLORREF m_txtcolor;
	static COLORREF m_backcolors;
	static COLORREF m_oldbackcolors;
	COLORREF m_blkcolor;

	//static LOGFONT NEAR m_lfDefPrintFont;
	//static LOGFONT NEAR m_lfDefPrintFontOld;
	//CFont m_fontPrint;

	//{{AFX_MSG(CWediterView)
	afx_msg void OnEditLorwer();
	afx_msg void OnEditUpper();
	afx_msg void OnToolFonts();
	afx_msg void OnToolInschar();
	afx_msg void OnUpdateEditUpper(CCmdUI* pCmdUI);
	afx_msg void OnToolBackcolor();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnEditFind();
	afx_msg void OnUpdateEditRepeat(CCmdUI* pCmdUI);
	afx_msg void OnEditRepeat();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEditReplace();
	afx_msg void OnEditGoto();
	afx_msg void OnUpdateEditGoto(CCmdUI* pCmdUI);
	afx_msg void OnDestroy();
	afx_msg void OnToolInsword();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnUpdateFormatDownline(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFormatDowntext(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFormatUpline(CCmdUI* pCmdUI);
	afx_msg void OnUpdateFormatUptext(CCmdUI* pCmdUI);
	afx_msg void OnFormatDownline();
	afx_msg void OnFormatDowntext();
	afx_msg void OnFormatUpdowntext();
	afx_msg void OnFormatUpline();
	afx_msg void OnFormatUptext();
	afx_msg void OnToolSheet();
	afx_msg void OnFileAllclose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


#ifndef _DEBUG  // debug version in WediterView.cpp
inline CWediterDoc* CWediterView::GetDocument()
	{ return (CWediterDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

CWediterView* getview();

#endif // !defined(AFX_WEDITERVIEW_H__6CC09503_9FAA_4A83_8126_51C65C1C2CCF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -