这样试试:
首先FindWindow,得到那个程序主窗口的句柄,然后子类化它,去掉它的Title Bar, Status Bar, 然后resize你的主窗口,正好框住它,再然后move那个程序到你的主窗口的合适位置,看起来就像一个。通过子类化接管它的消息,通过它的句柄向它发命令,差不多可以实现你的目的吧。
Run the SDI above the background pic (that's an image copy of ur real main application), at the same time, hide main application, when finish the SDI, restore :)
Thanks qing_li73
Yes.I was trying what you mentioned.I just worked my programs like PCAnyWhere.Copy images to my own window and dispatch mouse event to child process.It works,but i still think there should be a easy way to accomplish this.
So i hope someone could give me some new advice.
Hi,phiger.
Thanks for reply.I really like OLE technic very much.But our project forces me forget it.Our main application must launch many small GUI instances among which most are migrated from UNIX.So it is very hard to regard them as a COM object.
Thanx again and hope to hear ur further advice.