Embedding window into another process

前端 未结 2 1384
醉话见心
醉话见心 2020-12-16 07:39

I have read some posts here on StackOverflow, but none has worked for me. Here is the code I am using to display the window of the standard Calculator on my form:

         


        
2条回答
  •  孤城傲影
    2020-12-16 07:48

    For the sake of your sanity, and the sanity of your program's users, I think you'd better abandon this idea:

    I tried to do exactly this thing with my own software (a window from 32-bit app embedded into 64-bit wrapper), and it never worked 100%, even using the tricks from the other answers you've got here.

    1. It is very hard to make it work reliably, there are zillion little subtle issues that you'll never get right. If you're messing with windows of other applications, which are not aware of your manipulation, generally you're asking for trouble.

    2. You're changing the way users expect Windows to behave. This will be confusing and unexpected for them.

提交回复
热议问题