Click here to Skip to main content
15,881,381 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 265.2K   7K   108  
A free spell checking engine for use in your C++ applications. Includes the current US English dictionary
// DlgSpellingEditCtrl.cpp : implementation file
//

#include "stdafx.h"
#include "FPSSpellChecker.h"
#include "DlgSpellingEditCtrl.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgSpellingEditCtrl dialog


CDlgSpellingEditCtrl::CDlgSpellingEditCtrl(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSpellingEditCtrl::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSpellingEditCtrl)
	//}}AFX_DATA_INIT
}


void CDlgSpellingEditCtrl::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSpellingEditCtrl)
	//DDX_Control(pDX, IDC_SPELL_CONTROL, m_editSpell);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSpellingEditCtrl, CDialog)
	//{{AFX_MSG_MAP(CDlgSpellingEditCtrl)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSpellingEditCtrl message handlers

BOOL CDlgSpellingEditCtrl::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_editSpell.AttachEdit(this, IDC_SPELL_CONTROL);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

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