Add wxTopLevelWindow::SetContentProtection()

This method allows to exclude a top level window from screen captures.
Windows 7 or newer is required and any macOS version is supported.
Other platforms are not implemented and will return false.

The display example has been extended to demo this ability.

Closes #22066.
This commit is contained in:
Tobias Taschner
2022-01-27 18:14:08 +01:00
committed by Vadim Zeitlin
parent f172f53ac4
commit 0a7b3bb3cf
12 changed files with 188 additions and 0 deletions

View File

@@ -398,6 +398,18 @@
#ifndef MUI_LANGUAGE_NAME
#define MUI_LANGUAGE_NAME 0x8
#endif
#ifndef WDA_NONE
#define WDA_NONE 0x0
#endif
#ifndef WDA_MONITOR
#define WDA_MONITOR 0x1
#endif
#ifndef WDA_EXCLUDEFROMCAPTURE
#define WDA_EXCLUDEFROMCAPTURE 0x11
#endif
/*