Embed a third-party application window in a window

Hello,

I would like to embed in some way a third party application in my own application window. The third party application is a Win32 native application that shows only one window on the screen.

I thought of two possible (?) solutions:
1) Reparent the third party window using the Windows API
2) Force the third party window size and position and remove the application title bar using the Windows API.

Any thoughts?

Thanks in advance,
Sandro

[468 byte] By [sandro.sigala] at [2008-1-9]
# 1

Hi Sandro,

It is possible to some extent, but if you take it to practice, you will get many strange behaviors, for example, when the third party window refreshed itself, it will not notify its parent window to redraw its client area since it thinks itself a parent, it is always a bad idea to make a window believe itself is a parent window but actually it has been sentence to child. If you just want it looks like embed in your application, then you can use FindWindow and MoveWindow API to keep third party window fixed in certain area of your own window.

For more information, please see: http://msdn2.microsoft.com/en-us/library/ms997562.aspx

hope it helps

rico

BiteQiu-MSFT at 2007-10-3 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

Thank you very much Rico for the info!

sandro.sigala at 2007-10-3 > top of Msdn Tech,Visual C++,Visual C++ General...