energy/consts/consts_windows.go

57 lines
1.5 KiB
Go
Raw Normal View History

2022-10-04 13:21:05 +08:00
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
2022-10-04 13:21:05 +08:00
//
//----------------------------------------
//go:build windows
// +build windows
2022-10-04 22:34:57 +08:00
package consts
2022-10-04 13:21:05 +08:00
2023-05-31 18:00:34 +08:00
import "github.com/energye/energy/v2/types"
2022-12-14 11:11:33 +08:00
type TCefMenuAccelerator = types.Int32
2022-10-04 13:21:05 +08:00
const (
MA_Shift = "SHIFT"
MA_Shift_Code TCefMenuAccelerator = 0x10 // 16
MA_Ctrl = "CTRL"
MA_Ctrl_Code TCefMenuAccelerator = 0x11 // 17
MA_Alt = "ALT"
MA_Alt_Code TCefMenuAccelerator = 0x12 // 18
)
const (
CEF_PREFERENCES_SAVED = WM_APP + 0x000A00
CEF_DOONCLOSE = WM_APP + 0x000A01
CEF_STARTDRAGGING = WM_APP + 0x000A02
CEF_AFTERCREATED = WM_APP + 0x000A03
CEF_PENDINGRESIZE = WM_APP + 0x000A04
CEF_PUMPHAVEWORK = WM_APP + 0x000A05
CEF_DESTROY = WM_APP + 0x000A06
CEF_DOONBEFORECLOSE = WM_APP + 0x000A07
CEF_PENDINGINVALIDATE = WM_APP + 0x000A08
CEF_IMERANGECHANGED = WM_APP + 0x000A09
CEF_SENTINEL_START = WM_APP + 0x000A0A
CEF_SENTINEL_DOCLOSE = WM_APP + 0x000A0B
CEF_BEFORECLOSE = WM_APP + 0x000A0C
)
2023-05-31 17:41:14 +08:00
// TCefEventHandle
// /include/internal/cef_types_win.h (cef_event_handle_t)
type TCefEventHandle = MSG
type MSG struct {
Hwnd types.HWND
Message types.UInt
WParam types.WPARAM
LParam types.LPARAM
Time types.DWORD
Pt types.Point
}