我如何通过C#通过Windows API复制表单窗口# [英] How i do Duplicate form Window via Windows API by C#

查看:116
本文介绍了我如何通过C#通过Windows API复制表单窗口#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想复制或克隆,从其他Windows应用程序窗体窗口

我需要通过Windows做API或WIN32

我不知道该怎么做请帮助。



非常感谢你。

Hello everybody,

I want to Duplicate or Clone , Form Window From Other Windows Application
and I need to do via Windows API or WIN32
I don''t know how to do this Please Help.

Thank You So Much.

推荐答案

示例:



主要应用程序{

form1 {

一些控制

}

form2 {

一些控制

}

}





我的申请{

MyFunction {

//这是一个例子因为我不知道

IntPrt form2 = Coppy(form2);

ShowWindow(form2,1);

}

}



显示窗口总数= 3 form1 form2和我的申请表2



希望你理解我

谢谢你你
Example:

Main Application{
form1{
some control
}
form2{
some control
}
}


My Application{
MyFunction{
//this is example because I don''t know
IntPrt form2 = Coppy(form2);
ShowWindow(form2,1);
}
}

Total of show window = 3 form1 form2 and my application form 2

Hope you understand me
Thank you


非常感谢,

,因为我有一个应用程序有MDI父级,我试着通过Window API函数SetParent()设置Dock out;这是工作

但不能做任何表格和第二种方式我尝试设置父母在主应用程序中形成并停靠桌面

这是工作,可以做任何事,但可以做1形成这个问题我找到了一些改进的东西。

再次感谢你的谈话。
Thank you so much,
because I has a application has MDI parent and I''m try set Dock out via Window API function SetParent(); it is Work
but can''t do anything in form and second way I''m try Set Parent to form in Main Application and Dock out to Desktop
This is Work and can do anything but can do 1 form this problem I''m find something to improve .
Thank again for talking.


这篇关于我如何通过C#通过Windows API复制表单窗口#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆