关于RUN调用外部程序在指定表单FORM里面显示的问题?
请问用RUN命令调用外部应用程序,如何在指定的FORM里面显示,而不是在FORM外面显示,就是所调用的外部应用程序如何作为子窗口显示,谢谢大家。
public hwfox,hwexcel,oe DECLARE INTEGER SetParent in win32api as st integer, integer DECLARE integer FindWindow in win32api as fw string,string oe=CREATEOBJECT("excel.application") oe.visible=.t. hwfox=fw(null,"Microsoft Visual FoxPro") hwexcel=fw(null,"Microsoft Excel") =st(hwexcel,hwfox)
DECLARE INTEGER ShellExecute IN "Shell32.dll" as exe INTEGER hwnd,STRING lpVerb,STRING lpFile,STRING lpParameters,STRING lpDirectory,LONG nShowCmd