我想写一个程序,把上面这个程序嵌到我的程序里面,然后再模拟一下图片上的操作,可以吗?要怎么实现?请高手指点。

解决方案 »

  1.   

    http://2f.images22.51img1.com/6000/258272447/fcbcd5570d7f69e18cf5e03981c7b4b9.jpg
      

  2.   

    如果是要嵌入其他程序,可以用API函数SetParent
    [DllImport("user32.dll")]
    public static extern int SetParent(IntPtr wnd, IntPtr newParentWnd);[DllImport("user32.DLL")]
    public static extern IntPtr FindWindow(string lpszClass, string lpszWindow);[DllImport("user32.dll")]
    private static extern IntPtr GetParent(IntPtr hwnd);
      

  3.   

    就是这个图片了:
    http://2f.images22.51img1.com/6000/258272447/fcbcd5570d7f69e18cf5e03981c7b4b9.jpg