InvokeSpellerForWindow()

Runs the GroupWise spell checker for the edit window that is associated with the specified window handle (HWND).

Token ID

AFTKN_INVOKE_SPELLER_FOR_WINDOW or 916

Syntax

VOID InvokeSpellerForWindow(DWORD WindowHandle;
                               [BOOLEAN Destroy])

Parameters

WindowHandle As DWORD

The HWND of the window for which you want to run the spell checker. This window should be derived from an edit or richedit window class because it must provide meaningful responses to the following windows messages:

  • 1) WM_GETTEXTLENGTH
  • 2) WM_GETTEXT
  • 3) EM_GETSEL
  • 4) EM_SETSEL
  • 5) EM_SCROLLCARET
  • 6) EM_LINEFROMCHAR
  • 7) EM_GETFIRSTVISIBLELINE
  • 8) EM_LINESCROLL
  • 9) EM_REPLACESEL
Destroy As BOOLEAN

(Optional) After you are done with the spell checker, call this token a second time with this flag set to TRUE to free up any resources that are being internally used by GroupWise.