Replies: 1 comment
-
Assuming you have the r, g, b components of your color and some floating-point value [0 1) for your alpha channel (just as an example), pack it as a COREWEBVIEW2_COLOR then call put_DefaultBackgroundColor() on your WebView Controller.
Now about the flickering, and if this is on the first navigation after having created the WebView, you might want to pass the additional flag "--msWebView2CancelInitialNavigation" to your EnvironmentOptions before calling CreateCoreWebView2EnvironmentWithOptions.
When creating a WebView, there is an implicit initial navigation to about:blank. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem with a white screen flickering on the window. I learned from the documentation that setting the WEBVIEW2_DEFAULT_BACKGROUND_COLOR environment can solve the problem, but I don't know how to set it in win32. I tried _putenv_s("WEBVIEW2_DEFAULT_BACKGROUND_COLOR", "0x00000000");
But it didn't work and it still flickered.
Beta Was this translation helpful? Give feedback.
All reactions