Interesting. Maybe I'll incorporate that in my Sb code. I bet you that would fix GoogleEarth from locking up everything when you try to close it too. I was actually thinking I might try switching to using SetWindowRgn instead of nudging and then I don't have to SetParent at all. Sb would not truly embed, it would just move/size/crop. The hardest part of doing it that way is making sure every window is hidden when switching apps in your frontend and every window is re-shown when switching back. I really want to do every thing Layered so my buttons can have per-pixel alpha-blends over a moving map window. For that I can't SetParent as described. Someday... when I have time :(
You care to help out? ...it's basically open-source (if you ask for it). PM me your email/IM if you wouldn't mind talking about Win32 API coding a bit sometime.
I would guess that some other applications respond badly as well when their parents are stolen. :) Eg. if the window for some reason try to get some data from it's parent dialog.
Originally Posted by RPM_VR4
SetWindowRgn would probably work, but could raise some new problems since you have to manually keep track of all windows. This is probably a "cleaner" way to do it than stealing the windows parent though.
I'll be glad to help out if I can. :) Sending you a PM now.