Skip to content

Commit

Permalink
示例修改
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Feb 26, 2024
1 parent f1c962f commit ffea5ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/tray/lclceftray/lclceftray.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ import (
"github.com/energye/energy/v2/pkgs/channel"
"github.com/energye/golcl/lcl"
"github.com/energye/golcl/lcl/types"
"github.com/energye/golcl/pkgs/libname"
)

func main() {
libname.LibName = "C:\\Users\\Administrator\\golcl\\liblcl2.3.5.dll"
cef.GlobalInit(nil, demoCommon.ResourcesFS())
cefApp := cef.NewApplication()
cef.BrowserWindow.Config.Url = "https://www.baidu.com"
cef.BrowserWindow.SetBrowserInit(func(event *cef.BrowserEvent, window cef.IBrowserWindow) {
if window.IsLCL() {
trayDemo(window)
lcl.Application.SetShowMainForm(false)
}
})
cef.SetBrowserProcessStartAfterCallback(func(b bool) {
Expand Down

0 comments on commit ffea5ee

Please sign in to comment.