Click here to Skip to main content
15,892,480 members
Articles / Programming Languages / C++

Using the Microsoft Common Spell API

Rate me:
Please Sign up or sign in to vote.
4.09/5 (7 votes)
14 Jun 20011 min read 197.2K   2.8K   32  
An introduction to using the Microsoft CSAPI.
/* ---------------------------
   CSDEMO.RC - resource script
   ---------------------------*/
   
#include "csdemo.h"
#include "windows.h"

CSDEMO MENU
	{
	POPUP "&File"
		{
		MENUITEM "&Open...", IDM_OPEN
		MENUITEM "&Close", IDM_CLOSE
		MENUITEM "&Save", IDM_SAVE
		MENUITEM "Save &As...", IDM_SAVEAS
		MENUITEM SEPARATOR
		MENUITEM "E&xit", IDM_EXIT
		}
	POPUP "&Spelling"
		{
		MENUITEM "Run &Check...", IDM_SPELLCHECK
		}
	}

SPELLDLG DIALOG DISCARDABLE  60, 50, 240, 70
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Spelling"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Change to:", IDC_STATIC, 8, 20, 40, 10
    EDITTEXT        IDC_EDIT, 50, 18, 90, 12, ES_AUTOHSCROLL
    LTEXT           "Suggestions:", IDC_STATIC, 8, 36, 45, 10
    LISTBOX         IDC_LIST, 60, 30, 80, 32, LBS_NOTIFY | WS_VSCROLL | WS_TABSTOP | LBS_NOINTEGRALHEIGHT
    PUSHBUTTON      "&Ignore", IDC_IGNORE, 150, 18, 40, 14
    PUSHBUTTON      "I&gnore All", IDC_IGNOREALL, 195, 18, 40, 14
    DEFPUSHBUTTON   "&Change", IDC_CHANGE, 150, 34, 40, 14
    PUSHBUTTON      "C&hange All", IDC_CHANGEALL, 195, 34, 40, 14
    PUSHBUTTON      "&Add", IDC_ADD, 150, 50, 40, 14
    PUSHBUTTON      "Cancel", IDCANCEL, 195, 50, 40, 14
    LTEXT           "Not in dictionary:", IDC_STATIC, 8, 5, 60, 10
	LTEXT			"", IDC_MISSPELL, 70, 5, 90, 10
END

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
Software Developer (Senior)
Slovakia Slovakia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions