mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-17 08:05:51 +01:00
14 lines
363 B
Go
14 lines
363 B
Go
//go:build windows
|
|
|
|
package runtime
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/wailsapp/wails/v3/pkg/w32"
|
|
)
|
|
|
|
var invoke = `window._wails.invoke=window.chrome.webview.postMessage;`
|
|
var flags = fmt.Sprintf(
|
|
`window._wails.flags={"system":{"resizeHandleWidth":%d,"resizeHandleHeight":%d}};`,
|
|
w32.GetSystemMetrics(w32.SM_CXSIZEFRAME),
|
|
w32.GetSystemMetrics(w32.SM_CYSIZEFRAME))
|