You can disable Aero Peek for a specific window to keep it visible by calling the DwmSetWindowAttribute function as follows-
BOOL bExclude{ TRUE };
HRESULT hr = DwmSetWindowAttribute(hwnd, DWMWA_EXCLUDED_FROM_PEEK, &bExclude, sizeof bExclude);
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everybody.
I'm working on a presentation app (it has 2 windows, one for each monitor). In the main monitor there's the presentation controls, on second window there is the presentation (just like power point).
However, if the user takes the mouse to the windows taskbar, point to another app, and hover over the another app thumbnail, the other app is shown and the presentation window disapears, remaining only the desktop background image. (This is a problem to me, because sometimes users have to switch to other apps while presenting to search files, copy some things, find some lyrics on google, and every time they do this the screen on the projector blinks)
I want to know is there's any way to prevent this behavior and keep my presentation window always on front.
(Just for curiosity, I tried this running power point and it disapears too)
You can disable Aero Peek for a specific window to keep it visible by calling the DwmSetWindowAttribute function as follows-
BOOL bExclude{ TRUE };
HRESULT hr = DwmSetWindowAttribute(hwnd, DWMWA_EXCLUDED_FROM_PEEK, &bExclude, sizeof bExclude);