This commit is contained in:
amaitland
2015-05-12 10:58:58 +10:00
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -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; }
}
};
}
+2 -1
View File
@@ -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,