本文介绍了如何在打开的窗口中嵌入另一个程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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
推荐答案
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);
这篇关于如何在打开的窗口中嵌入另一个程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!