I have a large C++ codebase with native Windows GUI that runs fullscreen.
A part of it shall be exchanged by a WPF window shown on top of it.
The window is set up like this:
<Window WindowState="Normal"
WindowStyle="None"
ShowInTaskbar="False"
AllowsTransparency="True"
/>
This blends the window seamless into the rest of the application.
The invocation of the window is done from C++/CLI like this:
Windows::Window^ w = window();
Windows::Interop::WindowInteropHelper iHelp(w);
iHelp.Owner = System::IntPtr(_parentHwnd);
w->Show();
The _parentHwnd is the HWND of the native application.
As said the application is always shown fullscreen.
When I now click on the WPF window the Windows taskbar will appear.
How do I prevent the taskbar from appearing?
I have used this class (an idea was found somewhere on the Net) to hide/show the taskbar:
Works on Windows XP/Vista/7.