Einzelnen Beitrag anzeigen

Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#5

AW: MagSetWindowFilterList function not remove specified window of screenshot

  Alt 27. Jan 2018, 15:28
Hiding / minimizing a window to exclude it from a screenshot is an invasive operation and I as an user would not like it (even if it's only for a split second).

1 - MagSetWindowFilterList function not remove main form (Form1).
You should not declare your filterList as PHWNDArray . Just use a normal THWNDArray as variable declaration and pass it like this: MagSetWindowFilterList(hwndMag, MW_FILTERMODE_EXCLUDE, 1, @filterList[0]) . You could even use plain HWND as type for filterList (in case there's always only one handle in your "list").

2 - How recovery the content of "MagnifierWindow" to a image format?
I never used the magnification API, but the linked article shows a way by using the so called MagImageScalingCallback .
Projekte:
- GitHub (Profil, zyantific)
- zYan Disassembler Engine ( Zydis Online, Zydis GitHub)
  Mit Zitat antworten Zitat