一旦现在使用它作为父级,你将如何解除表单中的应用程序?SetParent挂钩,你怎么解除挂钩?
[DllImport("user32.dll")]
public static extern int SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
[DllImport("coredll.dll", SetLastError = true)]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("coredll.dll", SetLastError = true)]
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
SetParent(setter, this.panel1.Handle);
解除挂钩我试过SetParent(setter,setter);没有运气。
我并不熟悉这一点,但我会尝试设置旧的父母(不管那是什么),通过存储它之前设置新的。 – TGlatzer 2013-03-04 05:54:20
对不起,我无法理解'从你的表单中解开一个应用程序' - 这是什么意思?就像您将Chrome标签拖放到自己的应用中一样?请详细说明:) – 2013-03-04 05:55:33
你必须知道。 – ploxtic 2013-03-04 05:56:15