richeditspellcheck.h

来自「管理项目进度工具的原代码」· C头文件 代码 · 共 38 行

H
38
字号
// RichEditSpellCheck.h: interface for the CRichEditSpellCheck class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RICHEDITSPELLCHECK_H__9A6FC513_71CB_4207_9FED_7B1429010FE5__INCLUDED_)
#define AFX_RICHEDITSPELLCHECK_H__9A6FC513_71CB_4207_9FED_7B1429010FE5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ISpellCheck.h"

class CRichEditSpellCheck : public ISpellCheck  
{
public:
	CRichEditSpellCheck(CRichEditCtrl& re);
	virtual ~CRichEditSpellCheck();

	const char* GetFirstWord() const;
	const char* GetNextWord() const;
	const char* GetCurrentWord() const;

	void SelectCurrentWord();
	void ReplaceCurrentWord(const char* szWord);
	
	void ClearSelection();

protected:
	CRichEditCtrl& m_re;
	mutable CHARRANGE m_crCurrentWord;

protected:
	const char* GetWord(const CHARRANGE& cr) const;
};

#endif // !defined(AFX_RICHEDITSPELLCHECK_H__9A6FC513_71CB_4207_9FED_7B1429010FE5__INCLUDED_)

⌨️ 快捷键说明

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