Article ID: 172560
Article Last Modified on 7/13/2004
SET LIBRARY TO HOME()+"\foxtools.fll" && If FoxTools is in the Home
&& directory.
Thisform.myHwind = mainhwnd()
SET LIBRARY TO
This code loads the Foxtools library and calls mainhwnd, which returns the
window handle for the main Visual FoxPro window, in this case it would be
your OLE Server Form. The code places the window handle into the class
property myHwind and then releases the Foxtools library.
DECLARE Integer SetForegroundWindow in WIN32API long whnd
ox.Show()
whnd = ox.myHwind
x = SetForegroundWindow(whnd)
Additional query words: OLE
Keywords: kbhowto KB172560