diff --git a/cef/buffer-panel.go b/cef/buffer-panel.go index e9558187..191097a3 100644 --- a/cef/buffer-panel.go +++ b/cef/buffer-panel.go @@ -1218,14 +1218,14 @@ func (m *TBufferPanel) SetOnMouseMove(fn lcl.TMouseMoveEvent) { // 设置鼠标抬起事件。 // // Set Mouse lift event. -func (m *TBufferPanel) SetOnMouseUp(fn TMouseEvent) { +func (m *TBufferPanel) SetOnMouseUp(fn lcl.TMouseEvent) { imports.SysCallN(def.BufferPanel_SetOnMouseUp, m.Instance(), api.MakeEventDataPtr(fn)) } // SetOnResize // // 设置大小被改变事件。 -func (m *TBufferPanel) SetOnResize(fn TNotifyEvent) { +func (m *TBufferPanel) SetOnResize(fn lcl.TNotifyEvent) { imports.SysCallN(def.BufferPanel_SetOnResize, m.Instance(), api.MakeEventDataPtr(fn)) } @@ -1875,3 +1875,7 @@ func (m *TBufferPanel) OrigPopupScanlineSize() int32 { func (m *TBufferPanel) SetOnPaintParentBkg(fn lcl.TNotifyEvent) { imports.SysCallN(def.BufferPanel_SetOnPaintParentBkg, m.Instance(), api.MakeEventDataPtr(fn)) } + +func (m *TBufferPanel) SetOnMouseWheel(fn lcl.TMouseWheelEvent) { + imports.SysCallN(def.BufferPanel_SetOnMouseWheel, m.Instance(), api.MakeEventDataPtr(fn)) +} diff --git a/cef/internal/def/proc-def-index.go b/cef/internal/def/proc-def-index.go index 34939860..9f9b4db3 100644 --- a/cef/internal/def/proc-def-index.go +++ b/cef/internal/def/proc-def-index.go @@ -2207,6 +2207,7 @@ const ( BufferPanel_SetOnPointerUp BufferPanel_SetOnPointerUpdate BufferPanel_SetOnPaintParentBkg + BufferPanel_SetOnMouseWheel // TString TString_Create TString_Free diff --git a/cef/internal/def/proc-def.go b/cef/internal/def/proc-def.go index 299bba7d..016456cd 100644 --- a/cef/internal/def/proc-def.go +++ b/cef/internal/def/proc-def.go @@ -2207,6 +2207,7 @@ func init() { dllimports.NewEnergyImport("BufferPanel_SetOnPointerUp", 0), dllimports.NewEnergyImport("BufferPanel_SetOnPointerUpdate", 0), dllimports.NewEnergyImport("BufferPanel_SetOnPaintParentBkg", 0), + dllimports.NewEnergyImport("BufferPanel_SetOnMouseWheel", 0), // TString dllimports.NewEnergyImport("TString_Create", 0), dllimports.NewEnergyImport("TString_Free", 0),