- April 27, 2009
- 778
- 333
- 32
- Home Country
- Netherlands
It's about my plugin, Opera Mobile Launcher.
So, I launch Opera Mobile and there is a problem when people have the "always on top" option enabled in MP. Opera Mobile starts behind MP...
I can hide MP by calling this before I start Opera:
ShowWindowAsync(MediaPortalHwnd, 0);
But then.. I don't know how to restore MP again after I close Opera... Well.. in one case I can, when I press the back button on the MCE remote. MP still receives that command when it's hidden.. But that does not count for people who don't use the MCE remote.. So there has to be another way..
What I actually want to do, is let MP send all keys it receives to Opera. For this, MediaPortal has to be the Main Window, but Opera has to be the top most window... How the hell can I achieve that? I tried a lot of p/invoke functions, but none of them really work.. Or could someone give me an exact combination?
So, I launch Opera Mobile and there is a problem when people have the "always on top" option enabled in MP. Opera Mobile starts behind MP...
I can hide MP by calling this before I start Opera:
ShowWindowAsync(MediaPortalHwnd, 0);
But then.. I don't know how to restore MP again after I close Opera... Well.. in one case I can, when I press the back button on the MCE remote. MP still receives that command when it's hidden.. But that does not count for people who don't use the MCE remote.. So there has to be another way..
What I actually want to do, is let MP send all keys it receives to Opera. For this, MediaPortal has to be the Main Window, but Opera has to be the top most window... How the hell can I achieve that? I tried a lot of p/invoke functions, but none of them really work.. Or could someone give me an exact combination?