(效果不是很好,仅供参考)
第一:新建一个类(Class)
Win32Native.cs
代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WpfApplication1
{
public class Win32Native
{
[System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SetParent")]
publ