I am trying to automate the thesaurus functionality in Microsoft Word
without having user input. Basically I am trying to get a list of
from Word for any given word.
I am using C# and a reference to Word 2000 (MSWORD9.OLB)
I used Spy++ to get to the class name of the thesaurus dialog box, and
get a valid handle to the thesarus dialog box. Now I need to get
the Synonyms list box on the dialog box.
In Spy++, the thesaurus dialog box has only three 'children' --
ScrollBar x 2 and a RichEdit20W control. It can grab the handle for
it, but there are no obvious signs that this is the synonyms listbox.
Can anyone help me figure out how to use SendMessage or any other API
can use to access the list box on the thesaurus dialog box?