如何在打开的窗口中嵌入另一个程序 [英] How to emb an another program in a open window
本文介绍了如何在打开的窗口中嵌入另一个程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How to Emb an another program in a open window? Now I have a try, but still have some problem,
1,how do I know when the loading program load success
2,when sleep is short, loading program will open but not embed to specified window
我尝试过:
我使用过CreateProcess& FindWindow& SetWindowLong& SetParent& SetWindowPos funcs
What I have tried:
I have used CreateProcess & FindWindow & SetWindowLong & SetParent & SetWindowPos funcs
推荐答案
鉴于你没有向我们展示任何代码,它对我们如何帮助你有点猜测。简而言之,如果你正在使用
Given you dont show us any code its a bit of a guess for us as to how to help you. In short, if you're using
PROCESS_INFORMATION processInformation = {0};
$ b你打电话给CreateProcess的$ b
,然后你可以
in your call to CreateProcess, you can then
WaitForSingleObject( processInformation.hProcess, INFINITE );
DWORD exitCode;
BOOL result = GetExitCodeProcess(processInformation.hProcess, &exitCode);
这篇关于如何在打开的窗口中嵌入另一个程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文