摘要: 转自:http://www.cnblogs.com/eugenewu0808/archive/2009/03/19/1416624.html以FoxPro的界面为例。设主程序为Winform.exe,FoxPro编译的程序为vfpTest.exe。1 在Winform中新建一个窗口VFPSHOW作为所有vfp打开后的父窗口,提供一个单例模式实现窗口唯一打开privatestaticVFPSHOWmInstance=null;///<summary>///单例模式///</summary>publicstaticVFPSHOWInstance{get{if(mInstan 阅读全文
posted @ 2012-05-30 00:22 杂烩饭2012 阅读(703) 评论(0) 推荐(0) 编辑
摘要: int GEHandle = appGE.GetRenderHwnd(); //IntPtr mapPtr = new IntPtr(GEHandle); int thisHandle = new WindowInteropHelper(this).Handle.ToInt32(); SetParent(GEHandle, thisHandle); 阅读全文
posted @ 2012-05-30 00:09 杂烩饭2012 阅读(709) 评论(0) 推荐(1) 编辑