From 6c34309add91ec53018adb8006b5019c74a40eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BA=A2=E5=B2=A9?= Date: Wed, 14 Jun 2023 17:31:29 +0800 Subject: [PATCH] D: remove useless code --- example/browser-popup-sub-window/popup-sub-window.go | 1 - example/dev-test/transparent-window/transparent-window.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/example/browser-popup-sub-window/popup-sub-window.go b/example/browser-popup-sub-window/popup-sub-window.go index f0f8916e..973a7c7d 100644 --- a/example/browser-popup-sub-window/popup-sub-window.go +++ b/example/browser-popup-sub-window/popup-sub-window.go @@ -61,7 +61,6 @@ func main() { } else if strings.Index(beforePopupInfo.TargetUrl, "model_window") > 0 { popupWindow.SetSize(200, 200) popupWindow.HideTitle() - //popupWindow.AsLCLBrowserWindow().BrowserWindow().EnableTransparent(100) popupWindow.WindowProperty().IsShowModel = true } return false diff --git a/example/dev-test/transparent-window/transparent-window.go b/example/dev-test/transparent-window/transparent-window.go index e0458d0f..d53fc48d 100644 --- a/example/dev-test/transparent-window/transparent-window.go +++ b/example/dev-test/transparent-window/transparent-window.go @@ -30,7 +30,7 @@ func main() { go server.StartHttpServer() }) cef.BrowserWindow.SetBrowserInit(func(event *cef.BrowserEvent, window cef.IBrowserWindow) { - + WindowTransparent(types.HWND(window.Handle())) }) cef.Run(cefApp) }