简体   繁体   中英

Activating an application as a child/popup of another application

Under Windows XP, is it possible to execute a 3rd party application, so its main window will be a child/popup window of my VC++ MFC application?

  • I want to control it's Z-Order like any other window in my app
  • I don't want it be be visible in the taskbar
  • I want to catch its WM_CLOSE and handle it in my app

In general, I want my users to feel that this is just another dialog in my application.

Here is an example on hosting other applications in your application:
Hosting .exe applications into a dialog

Also you may want to check out hooks and specifically the WH_CALLWNDPROC if you want to monitor all messages.

Not sure about z-ordering and taskbar visibility, but you could go for CreateProcess . I believe it would be prerfectly get the parent window's parameters and create a window as a child

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM