2022-10-04 16:38:43 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Licensed under GNU General Public License v3.0
|
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
2022-10-04 13:21:05 +08:00
|
|
|
package cef
|
|
|
|
|
2022-10-04 22:34:57 +08:00
|
|
|
import (
|
2022-11-02 12:47:47 +08:00
|
|
|
. "github.com/energye/energy/common"
|
2022-10-04 22:34:57 +08:00
|
|
|
"github.com/energye/golcl/lcl/api"
|
|
|
|
)
|
2022-10-04 13:21:05 +08:00
|
|
|
|
|
|
|
func WindowInfoAsChild(windowInfo, windowHandle uintptr, windowName string) {
|
2022-12-06 12:04:00 +08:00
|
|
|
Proc(internale_CEFWindowInfoAsChild).Call(windowInfo, windowHandle, api.PascalStr(windowName))
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func WindowInfoAsPopUp(windowInfo, windowParent uintptr, windowName string) {
|
2022-12-06 12:04:00 +08:00
|
|
|
Proc(internale_CEFWindowInfoAsPopUp).Call(windowInfo, windowParent, api.PascalStr(windowName))
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func WindowInfoAsWindowless(windowInfo, windowParent uintptr, windowName string) {
|
2022-12-06 12:04:00 +08:00
|
|
|
Proc(internale_CEFWindowInfoAsWindowless).Call(windowInfo, windowParent, api.PascalStr(windowName))
|
2022-10-04 13:21:05 +08:00
|
|
|
}
|