Click here to Skip to main content
15,895,799 members
Articles / Programming Languages / C++

A Spell Checking Engine

Rate me:
Please Sign up or sign in to vote.
4.88/5 (16 votes)
5 Feb 2001 267.9K   7K   108  
A free spell checking engine for use in your C++ applications. Includes the current US English dictionary
#if !defined(AFX_PRPGESPELLOPTIONS_COMMON_H__3E45CA82_2D9F_43F4_BE34_D5BF8D035D0A__INCLUDED_)
#define AFX_PRPGESPELLOPTIONS_COMMON_H__3E45CA82_2D9F_43F4_BE34_D5BF8D035D0A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrPgeSpellOptions_Common.h : header file
//

class CFPSSpellCheckEngine;
#include "DlgSpellChecker.h"

/////////////////////////////////////////////////////////////////////////////
// CPrPgeSpellOptions_Common dialog

class CPrPgeSpellOptions_Common : public CPropertyPage
{
	DECLARE_DYNCREATE(CPrPgeSpellOptions_Common)

// Construction
public:
	virtual void Save(CFPSSpellCheckEngine* pEngine);
	CPrPgeSpellOptions_Common();
	~CPrPgeSpellOptions_Common();

	CFPSSpellCheckEngine*	m_pEngine;

// Dialog Data
	//{{AFX_DATA(CPrPgeSpellOptions_Common)
	enum { IDD = IDD_SPELL_OPTION_COMMON };
	CListCtrl	m_lstWords;
	CString	m_strCorrect;
	CString	m_strInCorrect;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPrPgeSpellOptions_Common)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual void CleanupWordList();
	virtual void UpdateListControl();
	virtual void UpdateEditControls();
	virtual void AddEntry(LPCSTR lpszIncorrect, LPCSTR lpszCorrect);
	virtual void BuildList();
	// Generated message map functions
	//{{AFX_MSG(CPrPgeSpellOptions_Common)
	virtual BOOL OnInitDialog();
	afx_msg void OnChangeCorrect();
	afx_msg void OnChangeIncorrect();
	afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	BOOL	m_bChangeEdit;
	BOOL	m_bDisplayed;

	CTypedPtrList<CPtrList, CDlgSpellChecker_CHANGEALL*> m_Words;

};

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

#endif // !defined(AFX_PRPGESPELLOPTIONS_COMMON_H__3E45CA82_2D9F_43F4_BE34_D5BF8D035D0A__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions