Skip to content

Commit a1f5a28

Browse files
authored
Update NetWebView2Lib.au3
1 parent a1470bb commit a1f5a28

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

NetWebView2Lib.au3

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,9 @@ Func __NetWebView2_freezer($oWebV2M, ByRef $idPic)
14191419
Local $hDestination_DC = _WinAPI_CreateCompatibleDC($hPictureDC) ; Creates a memory device context compatible with the specified device
14201420
Local $hDestination_Bitmap = _WinAPI_CreateCompatibleBitmap($hPictureDC, $aPos[2], $aPos[3]) ; Creates a bitmap compatible with the specified device context
14211421
Local $hDestination_Sv = _WinAPI_SelectObject($hDestination_DC, $hDestination_Bitmap) ; Selects an object into the specified device context
1422-
_WinAPI_PrintWindow($hWindow_WebView2, $hDestination_DC, 2)
1422+
1423+
Local Const $PW_RENDERFULLCONTENT = 0x2 ; this will go to where it should =)
1424+
_WinAPI_PrintWindow($hWindow_WebView2, $hDestination_DC, $PW_RENDERFULLCONTENT) ; print window to destination Window DC ; https://www.autoitscript.com/forum/topic/153782-help-filedocumentation-issues-discussion-only/page/40/#findComment-1549380
14231425

14241426
_WinAPI_ReleaseDC($hPic, $hPictureDC)
14251427
_WinAPI_SelectObject($hDestination_DC, $hDestination_Sv)
@@ -2177,3 +2179,4 @@ EndFunc ;==>__NetWebView2_Events__OnScreenCaptureStarting
21772179
#EndRegion ; NetWebView2Lib UDF - === EVENT HANDLERS ===
21782180

21792181

2182+

0 commit comments

Comments
 (0)