Normal
Wow, I got it! The main problem was actually finding the CORRECT Hwnd of Opera Mobile. I already had one, but I found out that Opera was not the only window with the classname I searched for. After this, I solved my problem with this:[code] TaskBarHwnd = FindWindow("Shell_traywnd", ""); SetWindowPos(TaskBarHwnd, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW); // Hide Taskbar SetForegroundWindow(MediaPortalHwnd); //mediaportal to foreground SetWindowPos(MediaPortalHwnd, OperaHwnd, 0, 0, SystemInformation.PrimaryMonitorSize.Width, SystemInformation.PrimaryMonitorSize.Height, SWP_HIDEWINDOW); //mediaportol on top, but hidden[/code]This works when MP is always on top and when it isn't. I can type and MP gets all the keypresses, but I don't see MP, but Opera! Perfect. This is how it must be. Case closed.
Wow, I got it! The main problem was actually finding the CORRECT Hwnd of Opera Mobile. I already had one, but I found out that Opera was not the only window with the classname I searched for. After this, I solved my problem with this:
[code] TaskBarHwnd = FindWindow("Shell_traywnd", "");
SetWindowPos(TaskBarHwnd, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW); // Hide Taskbar
SetForegroundWindow(MediaPortalHwnd); //mediaportal to foreground
SetWindowPos(MediaPortalHwnd, OperaHwnd, 0, 0, SystemInformation.PrimaryMonitorSize.Width, SystemInformation.PrimaryMonitorSize.Height, SWP_HIDEWINDOW); //mediaportol on top, but hidden
[/code]
This works when MP is always on top and when it isn't. I can type and MP gets all the keypresses, but I don't see MP, but Opera! Perfect. This is how it must be.
Case closed.