关于Mdi窗口-父窗口上的控件把子窗口的挡住的问题

时间:2014-08-12 12:49:04   收藏:0   阅读:185
using System.Runtime.InteropServices;

[DllImport("user32")]
public static extern int SetParent(int hWndChild, int hWndNewParent);

///temp2是你的子form
temp2.MdiParent = this;
temp2.Show();
SetParent((int)temp2.Handle, (int)this.Handle);

  原文:http://topic.csdn.net/u/20100116/22/b45780e4-1b81-403a-921d-d6e7e30c96ee.html

关于Mdi窗口-父窗口上的控件把子窗口的挡住的问题,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!