How do I use WSpell to spell check in my application?
WSpell can spell check text strings, standard text boxes (TextBox and CEdit), standard rich-text boxes (RichTextBox and CRichEdit), and TX Text Control. The most common application involves checking the contents of a text box on a form. Usually, your application will set WSpell’s TextControlHWnd property with the window-handle property of the text box (usually called the handle or hWnd property), then call WSpell’s Start method. WSpell will check the words in the text box. When it finds a spelling error, it will highlight the misspelled word and present its built-in spell check dialog, The user can use this dialog to look up suggestions, add words to user dictionaries, and correct misspellings. When a correction is made, WSpell updates the text control automatically. WSpell can also be used to monitor the user’s typing and editing in text controls to detect misspelled words as they are typed. If the text control supports it, misspelled words can be marked by changing their appearance (