mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Merge branch 'master' of https://github.com/jamespearce2006/CefSharp
This commit is contained in:
@@ -73,6 +73,8 @@ namespace CefSharp
|
||||
{
|
||||
private:
|
||||
bool _isFinalized;
|
||||
Nullable<bool>^ _offscreenTransparentBackground;
|
||||
|
||||
internal:
|
||||
CefBrowserSettings* _browserSettings;
|
||||
|
||||
@@ -274,5 +276,11 @@ namespace CefSharp
|
||||
void set(Nullable<bool>^ value) { _browserSettings->webgl = CefStateFromDisabledSetting(value); }
|
||||
}
|
||||
|
||||
property Nullable<bool>^ OffscreenTransparentBackground
|
||||
{
|
||||
Nullable<bool>^ get() { return _offscreenTransparentBackground; }
|
||||
void set(Nullable<bool>^ value) { _offscreenTransparentBackground = value; }
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
@@ -75,7 +75,8 @@ namespace CefSharp
|
||||
auto hwnd = static_cast<HWND>(windowHandle.ToPointer());
|
||||
|
||||
CefWindowInfo window;
|
||||
window.SetAsWindowless(hwnd, TRUE);
|
||||
bool transparent = !(browserSettings->OffscreenTransparentBackground->HasValue) || browserSettings->OffscreenTransparentBackground->Value;
|
||||
window.SetAsWindowless(hwnd, transparent);
|
||||
CefString addressNative = StringUtils::ToNative(address);
|
||||
|
||||
if (!CefBrowserHost::CreateBrowser(window, _clientAdapter.get(), addressNative,
|
||||
|
||||
Reference in New Issue
Block a user