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

A Spell Checking Engine

, 5 Feb 2001
A free spell checking engine for use in your C++ applications. Includes the current US English dictionary
// FPSSpellCheckerDlg.h : header file
//

#if !defined(AFX_FPSSPELLCHECKERDLG_H__FEBAD493_26CC_45DB_A17D_21759905FF39__INCLUDED_)
#define AFX_FPSSPELLCHECKERDLG_H__FEBAD493_26CC_45DB_A17D_21759905FF39__INCLUDED_

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

#include "FPSSpellCheckEngine.h"

/////////////////////////////////////////////////////////////////////////////
// CFPSSpellCheckerDlg dialog

class CFPSSpellCheckerDlg : public CDialog
{
// Construction
public:
	CFPSSpellCheckerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFPSSpellCheckerDlg)
	enum { IDD = IDD_FPSSPELLCHECKER_DIALOG };
	CListBox	m_lstPossibleMatches;
	CString	m_strWordToFind;
	CString	m_strWordCount;
	CString	m_strInWord;
	CString	m_strOutWord;
	CString	m_strInWord2;
	CString	m_strOutWord2;
	CString	m_strEditDiff;
	//}}AFX_DATA

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

// Implementation
protected:
	virtual void RecalcEditDiff();
	virtual void DoTest(LPCSTR lpszTestWords);
	virtual void InitEngine();
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFPSSpellCheckerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSearch();
	afx_msg void OnTestEditctrl();
	afx_msg void OnChangeInword();
	afx_msg void OnDoTest();
	afx_msg void OnChangeInword2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CFPSSpellCheckEngine m_Engine;
	BOOL	m_bReady;
};

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

#endif // !defined(AFX_FPSSPELLCHECKERDLG_H__FEBAD493_26CC_45DB_A17D_21759905FF39__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 | Mobile
Web02 | 2.8.140926.1 | Last Updated 6 Feb 2001
Article Copyright 2001 by Matt Gullett
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid