如何在一个窗口中运行多个进程的Delphi中创建Chrome应用程序? [英] How to create Chrome like application in Delphi which runs multiple processes inside one Window?

查看:292
本文介绍了如何在一个窗口中运行多个进程的Delphi中创建Chrome应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建一个应用程序组,它将在一个窗口下运行,但是在单独的进程中,如在Chrome浏览器中?我想将一个应用程序分成多个部分,因此一个崩溃或干扰的过程不能占用其他应用程序,但仍然保持与原始系统尽可能接近的外观和感觉。


$ b $我知道Chrome的源码是可用的,但是有没有什么可以为Delphi准备的?

解决方案

我猜基本上你会创建多个进程,每个进程创建一个窗口/窗体。其中一个进程具有嵌入每个子窗口的主窗口。就像调用 SetParent 一样简单。不同进程中的窗口将使用IPC(Inter Process Communication)进行交互,如命名管道或窗口消息。



请参阅这个问题在Delphi中使用SetParent的嵌入示例。请参阅此问题在Delphi中使用命名管道的示例。


Is it possible to create an "application group" which would run under one window, but in separate processes, like in Chrome browser? I'd like to divide one application into multiple parts, so that one crashing or jamming process cannot take down others, but still keep the look and feel as close to original system as possible.

I know the Chrome source is available, but is there anything even half ready made for Delphi?

解决方案

I guess basically you would create multiple processes each of which creates a window/form. One of the processes has the master window in which every child window is embedded. That is as simple as calling SetParent. The windows in different processes would talk to each other using an IPC (Inter Process Communication) mechanism like named pipes or window messages.

See this question for an embedding example of using SetParent in Delphi. See this question for an example of using named pipes in Delphi.

这篇关于如何在一个窗口中运行多个进程的Delphi中创建Chrome应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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