energy/cef/browser-main-window_other.go

30 lines
565 B
Go
Raw Normal View History

2023-08-20 20:44:08 +08:00
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
//go:build !windows
package cef
import (
"github.com/energye/golcl/lcl"
2023-08-20 20:44:08 +08:00
"github.com/energye/golcl/lcl/types"
)
func (m *lclBrowserWindow) wndProc() {
}
func (m *lclBrowserWindow) SetOnWndProc(fn lcl.TWndProcEvent) {
m.TForm.SetOnWndProc(func(msg *types.TMessage) {
m.InheritedWndProc(msg)
fn(msg)
})
2023-08-20 20:44:08 +08:00
}