Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Spell Check with Vista - Solved!!!

17 views
Skip to first unread message

Roz

unread,
Dec 22, 2009, 3:11:17 PM12/22/09
to
You will need these two external functions.

FUNCTION ulong FindWindow ( ref string lpClassName, ref string
lpWindowName) Library "USER32.DLL" ALIAS FOR "FindWindowW"

FUNCTION boolean SetForegroundWindow (uLong hWindow) Library "USER32.DLL"

Do your normal setup for ole.
In your code before you do checkspelling add the following:

ulong l_handle
string ls_name, ls_name
setNull(ls_null)

ls_name = "OpusApp"
l_handle = FindWindow(ls_name, ls_null)
If 0 <> l_handle Then SetForegroundWindow (l_handle)


Roz

unread,
Dec 22, 2009, 3:14:00 PM12/22/09
to
string ls_name, ls_null

Sorry!


"Roz" <r...@brcf.org> wrote in message news:4b3127e5@forums-1-dub...

0 new messages