Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A Spell Checking Engine

, 5 Feb 2001
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

Share

About the Author

Matt Gullett
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150224.1 | Last Updated 6 Feb 2001
Article Copyright 2001 by Matt Gullett
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid