As you can see with this image on the screen in my application my TAdvWebBrowser is displayed correctly, but when I make a screenshot (to clipboard or file) the displayed page becomes white.
It doesn't seem possible, the control is based on a separate ICoreWebView2 interface create is a separate window integrated in VCL which attaches the browser child window to the view. Unfortunately it's unclear right now how to paint the browser in an offscreen bitmap. Microsoft did not expose APIs or methods to do this.
Now if I want to capture my TAdvWebBrowser only I call the CaptureScreenShot function, but after that can I retrieve the TAdvBitmap directly?
I saw that I could treat this TAdvBitmap extactement like the current Graphics::TBitmap simply by using the Bitmap property. But I would like this TAdvBitmap to be accessible directly after the call to the screenshot function without having to go through OnCaptureScreenShot
DoCaptureScreenShot is close to what I'm looking for but it's protected so it can't be used.